Published on 06/29/2023
Published by Pratik Takle
git commands
- To check the remote location for git
- git config –get remote.origin.url
- To set the remote origin to new URL
- git remote set-url origin “clone url”
- To add the remote origin to the new URL
- git remote add origin “clone url”
- Git command flow to push your code
- make a local branch
- git checkout -b local_branch_name
- get a pull from origin branch
- git pull origin main
- make your changes.
- add all your changes.
- git add –all
- Commit your changes
- git commit -m “message to be shown on git repo”
- Get a pull from origin branch
- git pull origin main
- Push your local branch to git
- git push origin local_branch_name
- make a local branch