What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-11-18 03:07:18
turn a folder into a git repo
# 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-11-16 08:05:14
how to upload existing project to github
create a new repository on the command line echo "# {Repo Name}" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/cdcdianne/ReactJS-TheMovieDB.git gi... Add solution -
Shell/Bash 2021-11-11 14:36:26
Common GIt Commands
git init //add all git add . //cancel adds git reset //cancel commits git reset HEAD^ //cancel last 3 commits git reset HEAD~3 //when first commit git push -u origin master //remove remote origin git remote remove origin //reset remote origin git rem... Add solution -
Shell/Bash 2021-11-07 22:26:16
adding an existing project to github using the command line
# Go into your existing directory and run below commands cd docker-spring-boot echo "# docker-spring-boot" >> README.md git init git add -A git commit -m "first commit" git branch -M master git remote add origin https://github.co... Add solution -
Shell/Bash 2021-11-04 06:53:15
add token to cli git
git remote add origin https://[USERNAME]:[NEW TOKEN]@github.com/[USERNAME]/[REPO].git //how to generate token : https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token //or if you ha... Add solution -
Other 2021-10-29 01:07:06
git push functions code
echo "# CrossPlatform_GGM" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/richabatra/CrossPlatform_GGM.git git push -u origin main Add solution