That is a repository for helping with the Git.
In your terminal you can enter all the list commands. The commands that start with git
need a tool git installed in your machine.
mkdir [folder_name]
creating the project folder;cd [.folder_name]
accessing the project folder;- Use
cd ../
to return the folder;
- Use
git init
starting the git repository;git remote add [.name] [.url]
Add a new Remote to Repo;
git checkout -b [branch_name]
git push --set-upstream origin [nome_do_branch]
branch to remotegit branch
listing all lista the branches and in which you aregit checkout [nome_do_branch]
go for branchgit branch -D [nome_do_branch]
delete a branchgit merge [nome_da_branch]
merge branch with mastergit rebase [nome_da_branch]
to apply the modification to the top of the list in commits
Using for save your modifications in a or more files, you can only save a version of each file by branch.
git stash
save the modification madegit stash apply
apply changes savedgit stash list
show the list all stash savedgit stash clear
clear all stash
git log
- show all commits and the authorgit log --decorate
show which branch went to for which branchgit log --author="author_name"
show all commits of authorgit shortlog
show in alphabetical order which are authors, how many commits madegit log --graph
show in graphic form what happening with branchesgit show [rash]
show what was addedgit diff
modification details made.[use before commit]git diff --name-only
show only file name modifiedgit checkout [file_name]
: returns the file for before he savedgit reset HEAD [file_name]
git reset --hard [rash]
come back for a commit specific