Tagged: git Toggle Comment Threads | Keyboard Shortcuts

  • yogeshwersharma 06:40 on 2011/10/01 Permalink | Reply
    Tags: git   

    See ignored files in git 

    $ git ls-files --others -i --exclude-standard
    

    To see files that are ignored because of specific rules:

    $ git ls-files --others -i --exclude-from=.gitignore
    
    Advertisements
     
  • yogeshwersharma 03:45 on 2011/10/01 Permalink | Reply
    Tags: git   

    Get an old version of a file in git 

    Here is how you can get an old version of a file in Git.

    git reset 6315b560686b622013ecb0ac7f08e9a389e185c2 path/to/file/relative/to/git/root
    

    This will replace the current version with older version.

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel