9.4 Git fetch vs Git pull
git fetch git pull Fetch downloads only new data from a remote repository. Pull is used to update your current HEAD branch with the latest
git fetch git pull Fetch downloads only new data from a remote repository. Pull is used to update your current HEAD branch with the latest
1 Fetch repo git fetch< repository Url> 2 Fetch specific branch fetch <branch URL><branch name> 3 Fetch all branches git fetch -all 4 Get latest
Git upload the local changes to the git repository with commit 1. Pushing the changes to main branch or specific branch git push origin <branch-name>
Task/Demo : Pull the latest changes made in remote repository (i) We cloned a repository , and listed files now we can see the list
Creating remote origin : git remote add origin <repository url> git remote add origin https://github.com/sagarfive/nature-website We can also use other names for repository shortname git
Check remote repository git remote Check remote repository URL git remote -v Adding remote repository git remote add <short name><remote URL>git remote add origin-git
Tags make a point as a specific point in Git history. Tags are used to mark a commit stage as relevant. We can tag a
GitHub Marketplace contains tools that add functionality and improve your workflow. You can discover, browse, and install free and paid tools, including GitHub Apps, OAuth
Example : Github webhook-BuildTrigger-Integration-with-jenkins (i) We can trigger jenkins buildjob using below methods (ii) Its a jenkins build dashboard , we have to add the