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-10 17:58:18
how to create new repository in github via powershell
Function New-GitHubRepository { [cmdletbinding(SupportsShouldProcess)] Param( [Parameter(Position = 0, Mandatory, HelpMessage = "Enter the new repository name")] [ValidateNotNullorEmpty()] [string]$Name, [string]$Description, [switch]$Private... 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