repository for git tutorial
- remove folder and commit
- push to remote folder
- git checkout --track origin/daves_branch
git checkout -b "iss1" 5773
git checkout -d "iss1"
git branch -a
git fetch --all git checkout origin/homeuse git branch -b "iss1" git checkout "homeuse" git merge "iss1"
git remote add origin git://github.com/ling910520/file-monitoring git push - u origin master
git fetch
git reset --hard origin/master
git checkout --track origin/test1
git commit --amend --no-edit
git rebase master git rebase --continue
git push -d origin test1
- git push origin testfa
- git push --set-upstream origin testing-file
- git status
- git clone <repo_url> .
- git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
git reset --hard
git checkout --orphan latest_branch
Add all the files
git add -A
Commit the changes
git commit -am "commit message"
Delete the branch
git branch -D master
Rename the current branch to master
git branch -m master
Finally, force update your repository
git push -f origin master
PS: this will not keep your old commit history a
git rm -r --cached .
git add .
git commit -m ".gitignore fix"
-> git push tags to remote origin
git push origin <tag_name>
git push --tags
-> delete remote tag
git push --delete origin simplify_event_config