What do you want to save?
Add Code snippet
New code examples
-
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 -
Shell/Bash 2021-09-18 00:16:02
deploy html to github pages
# -> Github.com + make public repo 'username.github.io'#, where # username is your username # (or organization name). # CLONE git clone https://github.com/username/username.github.io # COMMIT git add --all git commit -m "init commit" # DO... 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 -
Shell/Bash 2021-09-16 11:33:03
git set remote tracking branch
git branch --set-upstream-to <remote-branch> // example git branch --set-upstream-to origin feature-branch // show up which remote branch a local branch is tracking git branch -vv // short version to set upstream with very first push git push -u ... Add solution -
Shell/Bash 2021-09-11 00:25:02
git upload folder
# 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