Talk:GIT
From syn2cat - HackerSpace.lu
(Difference between revisions)
(→Content) |
|||
Line 1: | Line 1: | ||
= Content = | = Content = | ||
+ | |||
+ | The content probably will be as follows. Its documentation will be created [https://source.hacker.lu/projects/code/wiki/Git here]. | ||
== basic == | == basic == | ||
Line 17: | Line 19: | ||
* fetching, pulling & pushing across multiple repos | * fetching, pulling & pushing across multiple repos | ||
* create an empty git branch (Slopjong really means empty, so a branch without any ancestor) | * create an empty git branch (Slopjong really means empty, so a branch without any ancestor) | ||
− | |||
= Brainstorming = | = Brainstorming = | ||
git init --bare; git stash save "My newest unstaged things"; git pull other_repo master; git clone --local --no-hardlinks ~/repo/mypasswordis1234.git; git stash apply; git stash pop; git log --oneline; git checkout file_to_be_undone; git branch new_branch; git checkout new_branch; git push :new_branch_to_be_deleted_on_the_remote_side; git config --list; git config --global user.name=Slopjong; git config --global user.email=me@example.com; | git init --bare; git stash save "My newest unstaged things"; git pull other_repo master; git clone --local --no-hardlinks ~/repo/mypasswordis1234.git; git stash apply; git stash pop; git log --oneline; git checkout file_to_be_undone; git branch new_branch; git checkout new_branch; git push :new_branch_to_be_deleted_on_the_remote_side; git config --list; git config --global user.name=Slopjong; git config --global user.email=me@example.com; |
Revision as of 11:47, 17 August 2011
Contents |
Content
The content probably will be as follows. Its documentation will be created here.
basic
- basic commands clone, commit, pull, push, log
not basic, not advanced
- configuring
- reading efficently the logs
- using git completion
advanced
- repository as a proxy
- turning a non-bare repo into a bare one and vice-versa
- fetching, pulling & pushing across multiple repos
- create an empty git branch (Slopjong really means empty, so a branch without any ancestor)
Brainstorming
git init --bare; git stash save "My newest unstaged things"; git pull other_repo master; git clone --local --no-hardlinks ~/repo/mypasswordis1234.git; git stash apply; git stash pop; git log --oneline; git checkout file_to_be_undone; git branch new_branch; git checkout new_branch; git push :new_branch_to_be_deleted_on_the_remote_side; git config --list; git config --global user.name=Slopjong; git config --global user.email=me@example.com;