DEV Community

Tiago Rosa da costa
Tiago Rosa da costa

Posted on

Quick tips - Git

What is git?

The distributed version tools. Used most to development of software

Command for init repository:

git init
Enter fullscreen mode Exit fullscreen mode

Command for configure name and email of user in git on repository:

git config user.name "username"

git config user.email "email"

Enter fullscreen mode Exit fullscreen mode

Command for verify repository status:

git status
Enter fullscreen mode Exit fullscreen mode

Command for monitore the files or confirm changes the files monitored to the git:

git add .
Enter fullscreen mode Exit fullscreen mode

or

git add --all
Enter fullscreen mode Exit fullscreen mode

Command for list branchs:

git branch -d branch_name
Enter fullscreen mode Exit fullscreen mode

Command for see commit histories:

git log
Enter fullscreen mode Exit fullscreen mode

Command to send changes to remove repository:

git push url_repository_remove_or_alias branch_name
Enter fullscreen mode Exit fullscreen mode

Command for delete remote repository:

git push --delete url_repository_remove_or_alias branch_name

Enter fullscreen mode Exit fullscreen mode

Command for dowload changes remote repository:

git pull url_repository_remove_or_alias branch_name

Enter fullscreen mode Exit fullscreen mode

Top comments (0)