What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-10-18 13:36:07
how to compress all branches on branch into one branch back to the master
git checkout yourBranch git reset $(git merge-base master yourBranch) git add -A git commit -m "one commit on yourBranch" This isn't perfect as it implies you know from which branch "yourBranch" is coming from. Note: finding that o... Add solution -
Shell/Bash 2021-10-17 23:18:07
error: src refspec main does not match any error: failed to push some refs to 'https://github.com/majeduli/paul-template.git'
#THis is not my solution but one this have worked for me in different situation so i copied all of them git init git add . //to add everything git commit -m '' git remote -v git push heroku master //New git config --global user.email "[email protected]... Add solution -
Shell/Bash 2021-10-04 21:11:03
how to remove sensitive data from github history
git filter-branch --force --index-filter \ "git rm --cached --ignore-unmatch PATH-TO-YOUR-FILE-WITH-SENSITIVE-DATA" \ --prune-empty --tag-name-filter cat -- --all git push --force --verbose --dry-run git push --force Add solution