git commit -am "[0.1.1] "
git log --oneline
git init
git add .
git commit -am "init"
git remote add origin <https://github.com/ThisoeCode/acme.git>
:: if LICENSE or README was added on GitHub repo creation
git pull origin main --allow-unrelated-histories
git push -u origin maingit checkout -b new_branch_name commit_hash(Old way)
git checkout --orphan new_branch_name
git rm -rf .(New way)
git switch --orphan <branchname>
git commit --allow-empty -m "Initial commit on orphan branch"
git push -u origin <branchname>git checkout main
git merge <branch-name>
git checkout app-routergit commit --amend -m "New message"git branch -a
git remotegit branch -d <branch-name>
git push origin --delete <branch-name>git branch --contains <commit-hash>git push --force origin <branch-name>git branch -vv
git status -sb
git push --allgit checkout -b temp
git add .
git commit -m "Temporary commit before reverting errors"
git checkout main
git reset --hard HEAD
:: git push origin tempSee a safer way
git reset <hash> --hard
git reset bc5ca7 --hardgit checkout <branch-name> -- <file.txt>- check the current remote URL
git remote -v- change URL
git remote set-url origin <https://github.com/ThisoeCode/NEW-REMOTE-URL.git>git log --oneline
git revert --no-commit a1b2c3d..HEAD
git commit -m ""git rm --cached <file_name>
git rm -r --cached <folder_name>:: 1. Clone the repository or update your local repository with the latest changes.
git pull origin main
git pull
:: 2. Switch to the base branch of the pull request.
git checkout main
:: 3. Merge the head branch into the base branch.
git merge origin/<user>/<branch>
:: 4. Push the changes.
git push -u origin main
git pushgit commit -m "Fixed foo bar issue
Closes #1
"Supported keywords include:
closeclosesclosedfixfixesfixedresolveresolvesresolved