Update and Fetch from Git Repository to my local
if facing Authentication Error in either of the commands first set Authentication
Git Clone
clone the entire repository.
When you clone the entire repository, the source code along with the history of the source code will be downloaded on your local system.
Git Pull
Imagine you've replicated the modifications today. Now, other devs have made a number additional modifications, so be sure to check back tomorrow.
Now we have to make changes to the local copy. So to make local copy up to date. The ability to pull the adjustments is essential. To fix this, run a git pull now. In that case, only the incremental changes will be pulled. You will have to clone every time.
When we do git pull it does two operations.
- It will do a fetch okay. Getting you all the changes at the same time.
- It will update your local repository
Git Fetch
Git fetch, on the other hand, will just retrieve changes rather than commit them. on a regional basis.The chance to work independently will present itself to you.
Git Push
Imagine you have finished your work at local repository. You now wish to send your modifications to a remote repository.
You wish to sync your remote repository with all of your modifications. That is when you will transfer your local repository modifications to remote repository.
- It will pull the changes first, and
- then eventually it will push the changes.
- it will sync your local copy and the remote copy eventually.
Git Push and create branch at Remote Remote Repository
right now we don't have release branch at Remote Repository, we have same at local directory
- This first create the branch at remote and then push changes
- What ever changes we have at local of release branch will also push remotely