File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 62
62
* [ Export a branch with history to the a file.] ( https://github.com/git-tips/tips#export-a-branch-with-history-to-the-a-file )
63
63
* [ Import form a bundle] ( https://github.com/git-tips/tips#import-form-a-bundle )
64
64
* [ Get the name of current branch.] ( https://github.com/git-tips/tips#get-the-name-of-current-branch )
65
+ * [ Ignore one file on commit (e.g. Changelog).] ( https://github.com/git-tips/tips#ignore-one-file-on-commit-eg-changelog )
65
66
66
67
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
67
68
<!-- @doxie.inject end toc -->
@@ -380,7 +381,7 @@ git archive master --format=zip --output=master.zip
380
381
git add --all && git commit --amend --no-edit
381
382
```
382
383
383
- ## Prunes branches that have been deleted in the remote.
384
+ ## Purnes branches that have been deleted in the remote.
384
385
``` sh
385
386
git fetch -p
386
387
```
@@ -437,5 +438,10 @@ git clone repo.bundle <repo-dir> -b <branch-name>
437
438
git rev-parse --abbrev-ref HEAD
438
439
```
439
440
441
+ ## Ignore one file on commit (e.g. Changelog).
442
+ ``` sh
443
+ git update-index --assume-unchanged Changelog; git commit -a; git update-index --no-assume-unchanged Changelog
444
+ ```
445
+
440
446
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
441
447
<!-- @doxie.inject end -->
Original file line number Diff line number Diff line change 247
247
{
248
248
"title" : " Get the name of current branch." ,
249
249
"tip" : " git rev-parse --abbrev-ref HEAD"
250
+ },
251
+ {
252
+ "title" : " Ignore one file on commit (e.g. Changelog)." ,
253
+ "tip" : " git update-index --assume-unchanged Changelog; git commit -a; git update-index --no-assume-unchanged Changelog"
250
254
}
251
255
]
You can’t perform that action at this time.
0 commit comments