Creating a new branch
Personally I prefer to use one command which is:
git checkout -b feature-y origin/master --no-track
I know.. its long. However it is better than:
git checkout origin/master
git checkout -b feature-y
What is the --no-track
for? It is to prevent the new branch from tracking origin/master.
Written by Kristian Lewis Jones
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#