Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git change commit

# for the most recent commit
git commit --amend -m "changed commits"
git push -f
# for n older commits
git rebase -i HEAD~n
# follow instuctions e.g. use r for reword to edit older commits
# removing a line means THAT COMMIT WILL BE LOST. 
git rebase --continue
# solve conflicts if exist
git push -f
# git push --force-with-lease origin <branch> is safer
Comment

change git commit

$ git commit --amend -m "Summary(Required)" -m "Description"
Comment

git how to change commit editor

git config --global core. editor "code -w" #for visual studio code
git config --global core. editor "nano"
Comment

PREVIOUS NEXT
Code Example
Shell :: convert excel to csv command line linux 
Shell :: install pgadmin ubuntu 20.04 
Shell :: find and kill android device offline on Mac 
Shell :: linux microcore static ip 
Shell :: noetic catkin tools install 
Shell :: git checkout specific file types only 
Shell :: kali nethunter linux install auf windows 
Shell :: Install Caddy on Debian 
Shell :: install minisom 
Shell :: turnoff swap 
Shell :: bash get variable value by variable name 
Shell :: install adb on mac 
Shell :: get ssm version 
Shell :: zsh-autosuggestions change key 
Shell :: Mount builtin Google Drive on Startup on Ubuntu 
Shell :: The chosen size is not valid for the chosen file system. : (-69850) 
Shell :: git remove from staging 
Shell :: get first 10 processes linux 
Shell :: TestStand enter non ascii 
Shell :: delete all empty files and folders in terminal 
Shell :: how to install very good cli for flutter 
Shell :: ubuntu stacer review 
Shell :: update n98-magerun2 
Shell :: how to install cs50 library in ubuntu 
Shell :: windows unable to format protected usb 
Shell :: linux find file 
Shell :: tcr test commit revert 
Shell :: kali virtualbox guest additions check version 
Shell :: (linux/arm) does not match the detected host platform (linux/amd64) 
Shell :: vs code wsl unable to write file 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =