Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to delete commits on github

git reset --hard 71c27777543ccfcb0376dcdd8f6777df055ef479
git push --force
Comment

remove commits from github

git clone 'VerybadRepo.git'
cd VeryBadRepo.git
git log
(find and copy "commit id"  )
git rebase -i "commit id"
remove line with unwanted commits ; save and close editor
git  push -f origin master/main

Comment

remove commit from github

git reset -- MAIN^
git reset -- MAIN^2 (reset last 2 commits)
(increase number for number of commits you want
to delete from your local repo, before youve pushed)
Comment

delete commit from github

git reset --hard 71c27777543ccfcb0376dcdd8f6777df055ef479
Comment

PREVIOUS NEXT
Code Example
Shell :: kill a process linux 
Shell :: install docker ec2 
Shell :: converting mp3 with FFMPEG 
Shell :: fedora microsoft font 
Shell :: batch file comment after command 
Shell :: npm install without dev dependencies 
Shell :: vim replace multiple lines 
Shell :: vitejs tailwind 
Shell :: git merge branch to master command line 
Shell :: command to update ubuntu 
Shell :: linux while true 
Shell :: taskkill linux 
Shell :: bat cd to directory 
Shell :: git rename local branch 
Shell :: no space left on device 
Shell :: change crontab editor 
Shell :: apt update package 
Shell :: applescript copy to clipboard 
Shell :: docker run always pull 
Shell :: ubuntu port ping 
Shell :: create user with home directory ubuntu 
Shell :: install github cli ubuntu 
Shell :: print whole array in bash in new line 
Shell :: git push an existing repo from cmd/bash 
Shell :: bash command to clean up log files in /var/log 
Shell :: delete a github repository using curl 
Shell :: generating a new ssh key 
Shell :: vscode Error: EACCES: permission denied 
Shell :: nuxt new project npm 
Shell :: Could not find com.facebook.yoga:proguard-annotations:1.14.1. 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =