git checkout -b <branchname>
git add
git commit -m "description of changes"
git checkout master
git pull --rebase
git checkout <branchname>
git rebase master
In case of conflicts: resolve conflict by looking at the files in question.
git add <resolved files>
git rebase --continue
git rebase --interactive HEAD~N
alternativelly create pull request and merge changes to master via UI
git checkout master
git merge <branchname>
git push
git branch -d <branchname>
git push origin :<branchname>
git show --name-only 8081fce782a733d1b23c38f7a3e5f11a2e0ebfdf
git log --diff-filter=A -- xml/attributes/attributes.xml
git status
git checkout -b teste
git status
git log
git rebase -i 80da07e38e79494ee44b639f06c184fdd2e0ee55
nesse ponto alterar o pick por edit em todos os commits que vc quer alterar e salvar depois executar o comando abaixo e o continue até finalizar todos os commits
GIT_COMMITTER_DATE="$(date)" git commit --amend --no-edit --date "$(date)"
git rebase --continue
GIT_COMMITTER_DATE="$(date)" git commit --amend --no-edit --date "$(date)"
git rebase --continue
git stash list
// stash@{0}: nome da branch que foi realizado o `stash`: Descrição
// stash@{1}: nome da branch que foi realizado o `stash`: Descrição
git stash show -p stash@{0}
git checkout stash@{0} \<nome do arquivo\>
git fetch origin branch_name
ou
git fetch origin
git checkout branch
ou
git fetch http://github.com/user/repositorio.git name_branch
git checkout -b name_branch FETCH_HEAD
git log --author="Marcos"