tags | bring feature branch up to date with development branch
Situation 1:
Situation 2:
Task:
Solution:
Get the latest versions of development and feature branches in the local repository.
git checkout development git pull git checkout feature1 git pull
Merge development branch into the feature branch and resolve any conflicts that may arise.
git merge development
Push the changes to the remote.
git push
Note:- The “git merge development” command works even if you have local changes not committed to feature1.
git config --global user.name "Kamaraju S. Kusumanchi" git config --global user.email "kamaraju@gmail.com" git config --global push.default matching git config --global alias.co checkout git init
Ref:- https://codemy.com/git
tags | change the remote branch name
git show HEAD^:full/path/to/file/from/top/dir/of/the/repository
See also:
git grep -i --all-match -e '\^.*\^' -e '|.*|'
git grep -e "^" --and --not -e "^$" <file_name> | wc -l
For example:
$ git grep -e "^" --and --not -e "^$" dummy_1510.txt | wc -l 27
export EDITOR=vim git commit --amend --author="Kamaraju S. Kusumanchi <kamaraju@gmail.com>" git config user.email "kamaraju@gmail.com" git config --get-all --show-scope user.email git config --get-all --show-origin user.email
git cherry-pick <Commit1> <Commit2> <...>
Ref:-
git config user.name "Kamaraju S. Kusumanchi" git config user.email "kamaraju@gmail.com"
for git $\geq$ 2.23.0
git -c advice.detachedHead=false pull --rebase --autostash -v origin
for git $\leq$ 2.20.1
git pull --rebase --autostash -v origin
used in | https://github.com/KamarajuKusumanchi/rutils/blob/master/bin/git-up