You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create an empty repo in github, then an insturction will appear, just follow it.
How to pull from remote
if remote is more updated than localgit push:
git pull
if local is more updated than remote
git stash
git pull
git stash apply # or follow the error tips if something went wrong
Delete All Commits of a Branch
It's useful to delete all sensitive information in your commits.
git checkout --orphan new_branch_name
git add .
git commit -m 'a new branch without history commits'
git push origin HEAD:new_branch_name
# now, delete the old branch on github# and, delete it in local:
git branch -D old_branch_name
# now you can create branches based on your new orphan
git branch another_new_branch