What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-09-27 01:32:04
git create new repository
# New local repository git init git add . git commit -m "Initial commit" # New remote repository # Create remote repository (likely on github), then: git remote add origin https://github.com/username/new_repo #https git remote add origin git@gi... Add solution -
Shell/Bash 2021-09-22 22:39:02
update fork
## Add Original Repository git remote add upstream https://github.com/OriginalOwner/OriginalProject.git ## Verify if Repository is added git remote -v ## Fetch Updates from Original Repository git fetch upstream ## Checkout to your master branch git ch... Add solution -
Shell/Bash 2021-09-21 06:38:03
git clone specific commit
# make a new blank repository in the current directory git init # add a remote git remote add origin url://to/source/repository # fetch a commit (or branch or tag) of interest # Note: the full history up to this commit will be retrieved unless # ... Add solution -
Shell/Bash 2021-09-18 05:24:03
how to use github to save code
echo "# asd" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/Imran-2021/asd.git git push -u origin main sometimes//-> git remote rm origin for cl... Add solution -
Other 2021-09-17 22:07:04
how to update forked repo in GitHub
## Add Original Repository git remote add upstream https://github.com/OriginalOwner/OriginalProject.git ## Verify if Repository is added git remote -v ## Fetch Updates from Original Repository git fetch upstream ## Checkout to your master branch git ch... Add solution -
Shell/Bash 2021-09-17 16:15:04
uploading a folder to github
git init git add <folder1> <folder2> <etc.> git commit -m "Your message about the commit" git remote add origin https://github.com/yourUsername/yourRepository.git git push -u origin master git push... Add solution
Best helpers
Ranking is empty