remove a file from git commit
Shell
git reset --soft HEAD^
or
git reset --soft HEAD~1
git reset HEAD path/to/unwanted_file
git commit -c ORIG_HEAD git reset file-name
Also in Shell:
- Title
- extract tar.xz ubuntu
- Category
- Shell
- Title
- npm ERR! path /usr/local/lib/nodejs/node-v10.15.3-linux-x64/lib/node_modules while installing angular cli
- Category
- Shell
- Title
- linux df -h levels occupy
- Category
- Shell
- Title
- command to check working of gpu in linux
- Category
- Shell
- Title
- foreach powershell
- Category
- Shell
- Title
- how to download youtube video in linux
- Category
- Shell
- Title
- git push
- Category
- Shell
- Title
- julia install linux
- Category
- Shell
- Title
- powershell bulk rename and add extra string to filename
- Category
- Shell
- Title
- linux remove folder and all his content
- Category
- Shell
- Title
- git reset hard
- Category
- Shell
- Title
- composer autoload dump
- Category
- Shell
- Title
- upgrade node version
- Category
- Shell
- Title
- Data path ".builders['app-shell']" should have required property 'class'.
- Category
- Shell
- Title
- .htaccess
- Category
- Shell
- Title
- how to revert to log in git
- Category
- Shell
- Title
- digital bootcamps in gauteng
- Category
- Shell
- Title
- git add commit in one command
- Category
- Shell
- Title
- git rename branch
- Category
- Shell
- Title
- linux find files without string
- Category
- Shell
- Title
- git init
- Category
- Shell
- Title
- linux get current user
- Category
- Shell
- Title
- how to open emulator in vs code
- Category
- Shell
- Title
- git create tag and push
- Category
- Shell
- Title
- date command in linux
- Category
- Shell
- Title
- setup mysql ubuntu
- Category
- Shell
- Title
- how to save environment variables ubuntu
- Category
- Shell
- Title
- shell hide tab
- Category
- Shell
- Title
- npm install dev dependencies
- Category
- Shell
- Title
- iis restart cfrom command promt windows
- Category
- Shell
- Title
- install kubernetess on mac
- Category
- Shell
- Title
- install wireguard
- Category
- Shell
- Title
- git flow init
- Category
- Shell
- Title
- How to find your ip on debian linux wsl
- Category
- Shell
- Title
- what does pro mean in github
- Category
- Shell
- Title
- git flow release
- Category
- Shell
- Title
- ubuntu ec2 node mongodb connect ECONNREFUSED 127.0.0.1:27017
- Category
- Shell
- Title
- nvcc not working after installing cuda
- Category
- Shell
- Title
- how to rename working directory in linux
- Category
- Shell
- Title
- git rebase one commit
- Category
- Shell
- Title
- bash find file with text
- Category
- Shell
- Title
- ffmpeg change audio codec from m4a to mp3
- Category
- Shell
- Title
- change user linuxcommand ch
- Category
- Shell
- Title
- how discharge changes e recover last commit git
- Category
- Shell
- Title
- linux command to list directory size
- Category
- Shell
- Title
- sh declare variable
- Category
- Shell
- Title
- git change git commit date
- Category
- Shell
- Title
- exa ls command
- Category
- Shell
- Title
- linux tar zip folder
- Category
- Shell
- Title
- install spyder conda
- Category
- Shell
- Title
- install bootstrap angular
- Category
- Shell
- Title
- git worktree
- Category
- Shell
- Title
- git clean cache
- Category
- Shell
- Title
- npm run custom script
- Category
- Shell
- Title
- how to install react spring
- Category
- Shell
- Title
- ubuntu list running services
- Category
- Shell
- Title
- how to install zlib
- Category
- Shell
- Title
- linux os update
- Category
- Shell
- Title
- add passphrase to ssh agent?
- Category
- Shell
- Title
- tree process linux commnad
- Category
- Shell
- Title
- rename multiple files linux
- Category
- Shell
- Title
- git second commit
- Category
- Shell
- Title
- hasura squashmigrations
- Category
- Shell
- Title
- how to fix the errors in chokidar in linux
- Category
- Shell
- Title
- testing cors
- Category
- Shell
- Title
- randomly choose n rows from a file linux
- Category
- Shell
- Title
- install glesv2 and egl library
- Category
- Shell
- Title
- rtl8821ce driver linux
- Category
- Shell
- Title
- nslookup not found ubuntu
- Category
- Shell
- Title
- linux symlink directory example
- Category
- Shell
- Title
- linux how to see directory data usage
- Category
- Shell
- Title
- add alias fish shell
- Category
- Shell
- Title
- visual studio code ubuntu
- Category
- Shell
- Title
- install node js ubuntu
- Category
- Shell
- Title
- git remove branch
- Category
- Shell
- Title
- netstat command in linux
- Category
- Shell
- Title
- crear una aplicación con angular cli
- Category
- Shell
- Title
- how to get the size of directory in linux
- Category
- Shell
- Title
- git list remote branches
- Category
- Shell
- Title
- how to remove untracked files in git
- Category
- Shell
- Title
- linux extract tgz
- Category
- Shell
- Title
- mysql backup dump docker file
- Category
- Shell
- Title
- a2ensite example.
- Category
- Shell
- Title
- how to create a branch in git
- Category
- Shell
- Title
- git find merge conflicts
- Category
- Shell
- Title
- view host entires mac terminal
- Category
- Shell
- Title
- assign default value in shell script
- Category
- Shell
- Title
- linux os upgrade
- Category
- Shell
- Title
- find exclude hidden files
- Category
- Shell
- Title
- install openjdk 8 sdk on ubuntu
- Category
- Shell
- Title
- ubuntu 16.04 bluetooth not detecting devices
- Category
- Shell
- Title
- how to check in which brach we are in git
- Category
- Shell
- Title
- grep for all .py files containing a word
- Category
- Shell
- Title
- linux install ping
- Category
- Shell
- Title
- offline heic to jpg converter on linux
- Category
- Shell
- Title
- find text in linux file
- Category
- Shell
- Title
- linux replace string in all files
- Category
- Shell
- Title
- bash generate random number between 1 10
- Category
- Shell
- Title
- webpack install
- Category
- Shell
- Title
- mkdir linux
- Category
- Shell