informatica:git
This is an old revision of the document!
Table of Contents
git
Iniciar repositorio en remoto
Given a project in our local file system:
/home/user/manhattan_project
1. Create the git repository:
git init /home/user/manhattan_project
2. Do the first commit
cd /home/user/manhattan_project git add * git commit -m "Initial commit"
3. Create the “bare” repository:
git clone --bare /home/user/manhattan_project /tmp/manhattan_project.git
4. Move the directory to its final location using SSH
scp -rv /tmp/manhattan_project.git user@git.example.com:/git/repositories/
Comandos sueltos
http://stackoverflow.com/questions/3258243/git-check-if-pull-needed
- To bring your remote refs up to date:
git remote update
- Will tell you whether the branch you are tracking is ahead, behind or has diverged. If it says nothing, the local and remote are the same.
git status -uno
- Will show you the commits in all of the branches whose names end in master (eg master and origin/master).
git show-branch *master
- Subir tags a remoto
git push --tags origin
informatica/git.1393425180.txt.gz · Last modified: 2015/04/13 20:19 (external edit)