3 ms·
git add . Add all modified files to be commited I think this adds only files relative to the current path? One I use from time to time is git add -p (-p
by yeukhon 11y ago
git add .
Add all modified files to be commited
I think this adds only files relative to the current path?
One I use from time to time is git add -p (-p stands for patch) , useful if you have a large set of changes, you keep forgetting to commit incrementally upfront, and you want to split your changes into one or more commits.
git checkout -b BRANCH_NAME will create a new branch locally.
Also, if you have time, look at pre-commit hook for your project :-) tired of running your favorite test harness plugin for your project manually or waiting for your Jenkins server to get the job?
Last, is git fetch vs git pull still a debate? I always use git fetch because that seems to be most preferable, fetch then rebase is the right path, most clean way to merge changes with some upstream / branch.
- deleted 11y ago[deleted]