Last active
March 23, 2021 00:03
-
-
Save pixelspencil/1dceb42b0abe15cb64487fd302c01c9a to your computer and use it in GitHub Desktop.
Revisions
-
pixelspencil renamed this gist
Mar 23, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
pixelspencil revised this gist
Mar 16, 2021 . 1 changed file with 39 additions and 37 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,73 +10,75 @@ `git clone <https://name-of-the-repository-link>` ## git branch `git branch <branch-name>` ## push the new branch into the remote repository: `git push -u <remote> <branch-name>` ## viewing branches: `git branch or git branch --list` ## deleting a branch: `git branch -d <branch-name>` ## git checkout `git checkout <name-of-your-branch>` ### shortcut command allows to create and switch `git checkout -b <name-of-your-branch>` ## git status `git status` ## git log `git log` `git log --oneline` ## git add `git add <file>` ### Add everything at once: `git add -A` ## git commit `git commit -m "commit message"` ## git push `git push <remote> <branch-name>` ### if is newly created, then you also need to upload the branch with the following command: `git push --set-upstream <remote> <name-of-your-branch>` **OR** `git push -u origin <branch_name>` ## git pull `git pull <remote>` ## git revert `git revert XXXXXXX` ## git merge `git checkout dev` `git fetch` `git merge <branch-name>` --- -
pixelspencil revised this gist
Mar 16, 2021 . 1 changed file with 7 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ ## git clone `git clone <https://name-of-the-repository-link>` # git branch ------------------------------------------ @@ -77,4 +77,9 @@ git checkout dev git fetch git merge <branch-name> --- ### Useful links [10 important git commands that every developer should know](https://www.freecodecamp.org/news/10-important-git-commands-that-every-developer-should-know/) -
pixelspencil revised this gist
Mar 16, 2021 . 1 changed file with 75 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,3 +3,78 @@ --- # GIT 101 --- ## git clone git clone <https://name-of-the-repository-link> # git branch ------------------------------------------ git branch <branch-name> # push the new branch into the remote repository: git push -u <remote> <branch-name> # viewing branches: git branch or git branch --list # deleting a branch: git branch -d <branch-name> # git checkout ---------------------------------------- git checkout <name-of-your-branch> # - shortcut command allows to create and switch git checkout -b <name-of-your-branch> # git status + git log -------------------------------- git status git log git log --oneline # git add --------------------------------------------- git add <file> ## To add everything at once: git add -A # git commit ------------------------------------------ git commit -m "commit message" # git push -------------------------------------------- git push <remote> <branch-name> # if is newly created, then you also need to upload # the branch with the following command: git push --set-upstream <remote> <name-of-your-branch> # or git push -u origin <branch_name> # git pull -------------------------------------------- git pull <remote> # git revert ------------------------------------------ git revert XXXXXXX # git merge ------------------------------------------- git checkout dev git fetch git merge <branch-name> ``` -
pixelspencil revised this gist
Mar 15, 2021 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1,5 @@ - [GIT 101](#git-101) --- # GIT 101 -
pixelspencil created this gist
Mar 15, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@