Skip to content

Instantly share code, notes, and snippets.

@tophyr
Created August 24, 2012 20:21
Show Gist options
  • Save tophyr/3455223 to your computer and use it in GitHub Desktop.
Save tophyr/3455223 to your computer and use it in GitHub Desktop.
~/Projects/android-source/bionic/libc/kernel/common/linux $git checkout -f HEAD
~/Projects/android-source/bionic/libc/kernel/common/linux $git status
# Not currently on any branch.
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: netfilter/xt_CONNMARK.h
# modified: netfilter/xt_MARK.h
# modified: netfilter_ipv6/ip6t_HL.h
#
no changes added to commit (use "git add" and/or "git commit -a")
~/Projects/android-source/bionic/libc/kernel/common/linux $git checkout -- netfilter/xt_CONNMARK.h
~/Projects/android-source/bionic/libc/kernel/common/linux $git status
# Not currently on any branch.
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: netfilter/xt_CONNMARK.h
# modified: netfilter/xt_MARK.h
# modified: netfilter_ipv6/ip6t_HL.h
#
no changes added to commit (use "git add" and/or "git commit -a")
~/Projects/android-source/bionic/libc/kernel/common/linux $git checkout HEAD -f -- netfilter/xt_CONNMARK.h
~/Projects/android-source/bionic/libc/kernel/common/linux $git status
# Not currently on any branch.
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: netfilter/xt_MARK.h
# modified: netfilter/xt_connmark.h
# modified: netfilter_ipv6/ip6t_HL.h
#
no changes added to commit (use "git add" and/or "git commit -a")
~/Projects/android-source/bionic/libc/kernel/common/linux $git checkout HEAD -f -- netfilter/xt_MARK.h
~/Projects/android-source/bionic/libc/kernel/common/linux $git status
# Not currently on any branch.
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: netfilter/xt_connmark.h
# modified: netfilter/xt_mark.h
# modified: netfilter_ipv6/ip6t_HL.h
#
no changes added to commit (use "git add" and/or "git commit -a")
~/Projects/android-source/bionic/libc/kernel/common/linux $git checkout HEAD -f -- netfilter/xt_connmark.h
~/Projects/android-source/bionic/libc/kernel/common/linux $git status
# Not currently on any branch.
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: netfilter/xt_CONNMARK.h
# modified: netfilter/xt_mark.h
# modified: netfilter_ipv6/ip6t_HL.h
#
no changes added to commit (use "git add" and/or "git commit -a")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment