mirror of
https://github.com/namibia/tips.git
synced 2024-09-28 21:49:01 +00:00
ignore a file
This commit is contained in:
parent
9bf3440e0e
commit
31ce22adac
@ -62,6 +62,7 @@
|
|||||||
* [Export a branch with history to the a file.](https://github.com/git-tips/tips#export-a-branch-with-history-to-the-a-file)
|
* [Export a branch with history to the a file.](https://github.com/git-tips/tips#export-a-branch-with-history-to-the-a-file)
|
||||||
* [Import form a bundle](https://github.com/git-tips/tips#import-form-a-bundle)
|
* [Import form a bundle](https://github.com/git-tips/tips#import-form-a-bundle)
|
||||||
* [Get the name of current branch.](https://github.com/git-tips/tips#get-the-name-of-current-branch)
|
* [Get the name of current branch.](https://github.com/git-tips/tips#get-the-name-of-current-branch)
|
||||||
|
* [Ignore one file on commit (e.g. Changelog).](https://github.com/git-tips/tips#ignore-one-file-on-commit-eg-changelog)
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end toc -->
|
<!-- @doxie.inject end toc -->
|
||||||
@ -380,7 +381,7 @@ git archive master --format=zip --output=master.zip
|
|||||||
git add --all && git commit --amend --no-edit
|
git add --all && git commit --amend --no-edit
|
||||||
```
|
```
|
||||||
|
|
||||||
## Prunes branches that have been deleted in the remote.
|
## Purnes branches that have been deleted in the remote.
|
||||||
```sh
|
```sh
|
||||||
git fetch -p
|
git fetch -p
|
||||||
```
|
```
|
||||||
@ -437,5 +438,10 @@ git clone repo.bundle <repo-dir> -b <branch-name>
|
|||||||
git rev-parse --abbrev-ref HEAD
|
git rev-parse --abbrev-ref HEAD
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Ignore one file on commit (e.g. Changelog).
|
||||||
|
```sh
|
||||||
|
git update-index --assume-unchanged Changelog; git commit -a; git update-index --no-assume-unchanged Changelog
|
||||||
|
```
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end -->
|
<!-- @doxie.inject end -->
|
||||||
|
@ -247,5 +247,9 @@
|
|||||||
{
|
{
|
||||||
"title": "Get the name of current branch.",
|
"title": "Get the name of current branch.",
|
||||||
"tip": "git rev-parse --abbrev-ref HEAD"
|
"tip": "git rev-parse --abbrev-ref HEAD"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Ignore one file on commit (e.g. Changelog).",
|
||||||
|
"tip": "git update-index --assume-unchanged Changelog; git commit -a; git update-index --no-assume-unchanged Changelog"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user