Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
64 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
!SLIDE | ||
|
||
# Fixing mistakes | ||
|
||
|
||
|
||
!SLIDE gitcmd | ||
|
||
# git commit --amend | ||
|
||
## Modify the content of the **last commit** | ||
|
||
<pre> | ||
$ vim README | ||
$ git add -p | ||
$ git commit --amend | ||
</pre> | ||
|
||
|
||
|
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
!SLIDE reverse | ||
|
||
# Collaboration | ||
|
||
|
||
|
||
!SLIDE | ||
|
||
## Back to your repos directory | ||
|
||
$ cd .. | ||
|
||
|
||
|
||
!SLIDE gitcmd | ||
|
||
# git clone | ||
|
||
## Clone a local repository | ||
|
||
$ git clone hello helloclone | ||
$ cd helloclone | ||
|
||
|
||
|
||
!SLIDE center | ||
|
||
## You can also clone from remote repositories | ||
|
||
![github-repo](github-repo.png) | ||
|
||
|
||
|
||
!SLIDE gitcmd | ||
|
||
# git branch -a | ||
|
||
## Show all branches (local and remote) | ||
|
||
$ git branch -a |
This file contains 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 characters