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 -
TypeScript 2022-02-01 04:10:56
move commits to another branch
# Note: Any changes not committed will be lost. git branch newbranch # Create a new branch, saving the desired commits git reset --hard HEAD~3 # Move master back by 3 commits (Make sure you know how many commits you need to go back) git checkout ne... Add solution -
Shell/Bash 2022-01-31 06:36:43
deploy react express to github pages
Make sure you have already created a repo in github. In "package.json" file of project add - "homepage": "https://username.github.io/reponame" Run Install - "yarn add gh-pages" In "package.json/scripts" ad... 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-17 22:24:26
git workflow
GIT Commands and sudo-order of operations (* = not neccessary) 1. Initialize git git init <--perform in target directory 2. Create new branch *git branch <--check branch "inventory" git checkout -b <name> <---create AND switch... 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
Best helpers
Bin Nguyễn
+5
Buttercup
+5
Vidhi Patel
+5
Gruppetto
+5
Bob R Bogle
+5
Mai Rose
+5
Fishbean
+5
James Song
+5
Eric Vought
+5