Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
git:faq [2009/10/30 15:44]
janakj
git:faq [2009/10/30 15:46]
janakj
Line 2: Line 2:
 ====== Git Frequently Asked Questions ====== ====== Git Frequently Asked Questions ======
 ==== How do I tell git to ignore my local changes to file XYZ from the repository? Can I use .gitignore for that? ==== ==== How do I tell git to ignore my local changes to file XYZ from the repository? Can I use .gitignore for that? ====
 +----
 No, you cannot use ''.gitignore'', because that only works on files that are not being tracked in the repository. If you want to tell git to ignore your local changes to file XYZ, use the following command: No, you cannot use ''.gitignore'', because that only works on files that are not being tracked in the repository. If you want to tell git to ignore your local changes to file XYZ, use the following command:
  
Line 13: Line 14:
  
 ==== Is there a way to pull a version of the code as it was at a certain date? ==== ==== Is there a way to pull a version of the code as it was at a certain date? ====
 +----
 You can check out what in the repository a week ago without a branch (it would be You can check out what in the repository a week ago without a branch (it would be
 difficult to make/commit changes) with: difficult to make/commit changes) with:
Line 25: Line 26:
  
 ==== How can I push my local branch into the shared repository? ==== ==== How can I push my local branch into the shared repository? ====
 +----
 **Question**: **Question**:
  

Navigation

Wiki

Other

QR Code
QR Code git:faq (generated for current page)