Pages

Saturday 4 December 2021

Git

 

git remote -v # get remote details


Git edit author of last commit

git commit --amend --author="Kiran Menon <kiran@domain.org>"


From <https://www.git-tower.com/learn/git/faq/change-author-name-email/> 


Remove untracked files

 git clean -fd


Adding change to an old commit 

git commit --fixup <commit-id> //the change to make

git rebase -i --autosquash <position/commit-id> //old commit where to make the change eg: HEAD~4