What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-11-13 18:43:28
git how to work with remote branch and fork
Step 1) Checkout new branch `git checkout -b new-branch` Step 2) Make changes Step 3) Add to git `git add .` Step 4) Commit `git commit -m "Made changes!"` or `git commit -a` Step 5) Push to your repo `git push origin new-branch` Step 6) Make PR... Add solution -
Shell/Bash 2021-11-13 05:47:29
git remote set url
git remote set-url origin new.git.url/here 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-11 02:25:21
rm remote git
$ git remote -v # View current remotes > origin https://github.com/OWNER/REPOSITORY.git (fetch) > origin https://github.com/OWNER/REPOSITORY.git (push) > destination https://github.com/FORKER/REPOSITORY.git (fetch) > destination https://gi... 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