What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-03 06:20:54
git commands
…or create a new repository on the command line git init git add . git commit -m "first commit" git remote add origin https://github.com/metinkaya1511/FinraDeck.git (GitHub’daki adres) git push -u origin master …push a... Add solution -
Shell/Bash 2022-01-23 05:46:29
git branch from commit
# Create a new branch from previous commit's hash git branch develop 04c900c # Push the new branch to remote repository git push --set-upstream origin develop # Checkout the new branch git checkout develop Add solution -
Shell/Bash 2021-11-21 02:44:14
undo git stash with conflicts
git reset HEAD . (note the trailing dot) git stash (save the conflicted merge, just in case) git checkout develop git fetch upstream; git merge upstream/develop git checkout <new-branch>; git rebase develop git stash apply stash@{1} Add solution -
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-10-25 12:59:07
git gss
# ---------------------- # Git Aliases # ---------------------- alias ga='git add' alias gaa='git add .' alias gaaa='git add --all' alias gau='git add --update' alias gb='git branch' alias gbd='git branch --delete ' alias gc='git commit' alias gcm='git co... Add solution -
Shell/Bash 2021-10-09 17:00:05
merging branches in git
//Make sure you are in your branch. Develop is a a branch in this case git checkout master Switched to branch 'master' git pull To pull changes of team members to your master git checkout develop git merge master Resolve Conflicts in develop git check... Add solution -
Shell/Bash 2021-10-04 06:55:03
git commands
…or create a new repository on the command line git init git add . git commit -m "first commit" git remote add origin https://github.com/metinkaya1511/FinraDeck.git (GitHub’daki adres) git push -u origin master …push a... Add solution -
Shell/Bash 2021-09-27 12:55:06
git merge specific files
git checkout [branch where you want to merge] git checkout [branch where files are located] [path_to_file1] [path_to_file2...] //You can now see the file added to your next commit with git status //Dont forget to commit git commit -m "message" /... Add solution -
Shell/Bash 2021-09-08 01:00:01
merge branch to branch
//Make sure you are in your branch. Develop is a a branch in this case git checkout master Switched to branch 'master' git pull To pull changes of team members to your master git checkout develop git merge master Resolve Conflicts in develop git check... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5