Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to update an existing repository in github

//:- Find & copy Central Repo URL
git remote add upstream https://github.com/username/repositoryname.git
//pull down any changes and sync the local repo with the central repo
git pull upstream main  // main is the default branch you can write your own branch name
//add changes
git add .
git commit -m "Message"
//push your changes up to your fork
git push origin master
Source by www.neonscience.org #
 
PREVIOUS NEXT
Tagged: #update #existing #repository #github
ADD COMMENT
Topic
Name
5+2 =