Github
Upload the changes to GIT
- git add .
- git commit -m "Added associations"
- git push origin master
Commands
- git init
- Initialize a Git repository
- git status
- Check if there are changes
- git add file_name
- Add specific file
- git add '*.txt'
- Add a type of files
- git rm '<file_name>'
- Delete a file
- git commit -m "Comment"
- Store our staged change
- git log
- Show all the changes
- git remote add origin https://github.com/<repository>/<repository_name>.git
- Push our local repository to Github server
- git push -u origin master
- Push the changes to the server repo
- origin - is the name of the remote
- master - is the name of the branch
- -u - save the parameters, so the second time only type git push
- git pull origin master
- Down the changes from the server repo
- git diff HEAD
- Get the differences from our most recent commit
- git diff --staged
- See the changes you just staged
- git reset <path>/<file_name>.est
- Unstage a file
- git checkout --<file_name>
- Get from the server the last version
- git brach <branch_name>
- Create a branck
- git branch
- Show all your branches
- git checkup <branch_name>
- Switch among branches
- git checkout <branch_name>
- Switch back to an specific branch
- git merge <branch_name>
- Merge the branch that you are typing <branch_name> into the branch you are
- git branch -d <branch_name>
- Delete a specific branch

Comentarios
Publicar un comentario