Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucbpz/git-tale
A short tale to explain git concepts when working on different branches.
https://github.com/lucbpz/git-tale
Last synced: 22 days ago
JSON representation
A short tale to explain git concepts when working on different branches.
- Host: GitHub
- URL: https://github.com/lucbpz/git-tale
- Owner: lucbpz
- Created: 2019-02-05T15:51:24.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-07T09:53:12.000Z (almost 6 years ago)
- Last Synced: 2024-11-08T04:39:31.391Z (2 months ago)
- Size: 15.6 KB
- Stars: 1
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **So you installed git...**
## **1. Who are you?**
`git config --global user.name "John Doe`
`git config --global user.email [email protected]`
### And what does git know about me?
`git config --list`
## **2. Create a repo!**
`git init`
### maybe you want to copy one?
`git clone http://projecturl`
# **What do you know about trees?**
* Working directory
* Index -> changes proposed for next revision
* Head -> usually points where the branch points## **3. Introducing a change to index tree**
`git add ` adds file to staging index.
## **4. Wait, what have I modified?**
`git status`
## **5. Ok, ready to commit**
`git commit -m "My first commit message"`
Head and active branch point to new commit.