Skip to content

Commit

Permalink
remove --amend for now
Browse files Browse the repository at this point in the history
  • Loading branch information
mojombo committed Mar 23, 2010
1 parent df82288 commit 0cada75
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 23 deletions.
20 changes: 20 additions & 0 deletions advanced/advanced.md
@@ -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>



24 changes: 2 additions & 22 deletions branch/branch.md
Expand Up @@ -301,26 +301,6 @@ $ cat hello.sh <span class="comment"># master version</span>



!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>



!SLIDE center

## Recap of forked lineage
Expand Down Expand Up @@ -466,7 +446,7 @@ $ cat hello.sh <span class="comment"># master version</span>

!SLIDE

# Let's induce a merge conflict
# What about merge conflicts?



Expand All @@ -492,7 +472,7 @@ $ cat hello.sh <span class="comment"># master version</span>
!SLIDE

## Cleanly merged files are staged.
## Conflicts are left in workind dir.
## Conflicts are left in working dir.

<pre>
$ git diff --staged <span class="comment"># clean</span>
Expand Down
40 changes: 40 additions & 0 deletions collab/collab.md
@@ -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
3 changes: 2 additions & 1 deletion showoff.json
Expand Up @@ -2,5 +2,6 @@
{"section":"title"},
{"section":"install"},
{"section":"create"},
{"section":"branch"}
{"section":"branch"},
{"section":"collab"}
]

0 comments on commit 0cada75

Please sign in to comment.