Answers for "setup git on command line"

4

git setup

$ git config --global user.name "Your Name"
$ git config --global user.email "[email protected]"
$ git config --global push.default matching
$ git config --global alias.co checkout
$ git init
Posted by: Guest on June-02-2021
0

popular git command

git fetch --all

# create new branch from origin `main` branch.
git checkout -b prefix/new_branch_name origin/staging

# commit and push your work to your own branch.
git commit -m "<type>(scope?): <message>"
git push

# update new codes from origin `staging` branch.
git pull --rebase origin staging
git push --force
Posted by: Guest on October-18-2021

Code answers related to "setup git on command line"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language