mdsh.com/wiki


RecentChanges

TextFormattingRules
AllWikiTopics
OrphanedWikiTopics
ToDoWikiTopics
WikiLockList
RSS
Export2HTML

WikiSearch

SetUsername

StartingPoints
Home
git

When starting as a new user on a box:

git config --global user.email "mark AT himsley DOT org"
git config --global user.name "Mark Himsley"
git config --global core.editor "vim"
git config --global push.default upstream
When creating a new local repository:
git init
git add path
git add file.ext
git commit
When creating a new remote repository:
mkdir project.git
cd project.git
git init --bare
When defining a remote repository in a local one:
git remote add origin ssh://user@host/path/to/repository.git
git remote -v
When pushing to a remote repository from a local one:
git push origin master
Export a copy of your current git HEAD to a tar.bz2
git archive --format=tar --prefix=<PATH>/ HEAD | bzip2 > ../<FILE>.tar.bz2


You may also be interested in:

git is mentioned on: StartingPoints


VeryQuickWiki Version 2.8.1 | Admin

All contents copyright mdsh.com (C) 2011-2023.