Académique Documents
Professionnel Documents
Culture Documents
=================================30-10-2018================================
URL utils
Git
http://rogerdudler.github.io/git-guide/index.es.html
Git Flow
https://dazzet.co/tutorial-de-git-flow/
https://danielkummer.github.io/git-flow-cheatsheet/
https://git-scm.com/book/es/v1/
UTils Comands
Prepare local folder for git
git init
Add files for git control version
git add .
Commit for stage area
git commit -m "some message"
Associate local folder from remote repository
git remote add origin https://site/repository
Push files
git push -u origin master
View remote repo (-v view url)
git remote -v
view details repo
git remote show name
Rename repo
git remote rename old_name new_name
Delete repo
git remote rm name
View current branch
git branch -a
Create branch
git branch branch_name
Download branch
git checkout branch_name
Merge
git checkout master
git merge branch_name
Delete branch (Local)
git branch -d branch_name
git branch -D branch_name
Delete branch (remote)
git push origin :branch_name
Update branch
git pull
Update branch from other branch(Example : Update feature from develop)
git pull origin develop
Discart local changes (modified)
git checkout --
git checkout file_name
Discart local changes (add)
git reset HEAD file_name
Add element last commit.
git commit --amend
--Create new Repo.
Clone
git clone https://
Change directory
cd path/directory
initialize
git init flow
Push branches
git push -u origin master
git push -u origin develop
git remote -v
2035 git remote add origin https://walter_forero@bitbucket.org/rappinc/one-
workflow.git
2036 git flow feature publish stockout
===========================================================================
Existing folder
cd existing_folder
git init
git remote add origin https://gitlab.com/emgesa/webapp.git
git add .
git commit -m "Initial commit"
git push -u origin master