![]() Git checkout - # Revert single file to a commit Git push -f origin # Force push branch to github Remove from git Git branch -m # Rename the current branch to Git branch -D # Deletes the branch on remote Git add -A # Add all files and commit them Tags # Listing tagsĬlean all history of a repo, git checkout -orphan tmp_repo ![]() In the case you wanna exit Vim, press ESC then type :q to quit or :wq to write and quit. Git push origin -u Squash # Squash newest 5 commitsĪdd a description (using Vim editor): git branch -edit-description # reset the upstream branch for the new-name local branch Git branch -m # RENAME REMOTE BRANCH (delete old push new) Git branch -M # if there are only capitalization changes # CURRENT IS ANOTHER BRANCH Git commit -m "update from merge (keep local in some folders)"Įach time, git merge
0 Comments
Leave a Reply. |