mirror of
https://github.com/namibia/tips.git
synced 2024-12-23 02:28:58 +00:00
Merge branch 'newtips/createbranch'
This commit is contained in:
commit
5c77f3d539
@ -109,6 +109,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
|
|||||||
* [Bypass pre-commit and commit-msg githooks](#bypass-pre-commit-and-commit-msg-githooks)
|
* [Bypass pre-commit and commit-msg githooks](#bypass-pre-commit-and-commit-msg-githooks)
|
||||||
* [List commits and changes to a specific file (even through renaming)](#list-commits-and-changes-to-a-specific-file-even-through-renaming)
|
* [List commits and changes to a specific file (even through renaming)](#list-commits-and-changes-to-a-specific-file-even-through-renaming)
|
||||||
* [Clone a single branch](#clone-a-single-branch)
|
* [Clone a single branch](#clone-a-single-branch)
|
||||||
|
* [Create and switch new branch](#create-and-switch-new-branch)
|
||||||
* [Ignore file mode changes on commits](#ignore-file-mode-changes-on-commits)
|
* [Ignore file mode changes on commits](#ignore-file-mode-changes-on-commits)
|
||||||
|
|
||||||
<!-- 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>. -->
|
||||||
@ -740,6 +741,11 @@ git log --follow -p -- <file_path>
|
|||||||
git clone -b <branch-name> --single-branch https://github.com/user/repo.git
|
git clone -b <branch-name> --single-branch https://github.com/user/repo.git
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Create and switch new branch
|
||||||
|
```sh
|
||||||
|
git checkout -b <branch-name>
|
||||||
|
```
|
||||||
|
|
||||||
## Ignore file mode changes on commits
|
## Ignore file mode changes on commits
|
||||||
```sh
|
```sh
|
||||||
git config core.fileMode false
|
git config core.fileMode false
|
||||||
|
@ -327,6 +327,9 @@
|
|||||||
},{
|
},{
|
||||||
"title": "Clone a single branch",
|
"title": "Clone a single branch",
|
||||||
"tip": "git clone -b <branch-name> --single-branch https://github.com/user/repo.git"
|
"tip": "git clone -b <branch-name> --single-branch https://github.com/user/repo.git"
|
||||||
|
},{
|
||||||
|
"title": "Create and switch new branch",
|
||||||
|
"tip": "git checkout -b <branch-name>"
|
||||||
},{
|
},{
|
||||||
"title": "Ignore file mode changes on commits",
|
"title": "Ignore file mode changes on commits",
|
||||||
"tip": "git config core.fileMode false"
|
"tip": "git config core.fileMode false"
|
||||||
|
Loading…
Reference in New Issue
Block a user