Useful commands for Git and GitHub
Sadat Jubayer
June 14, 2022
• 3 min read
First steps
- Download the git for all platforms https://git-scm.com/downloads
- Create a free account on GitHub https://github.com/join
Configure Git
-
After installing git, open Git Bash or any terminal and run the following commands.
-
Line started with # are comments
Most used commands
Workflow 1
Setup a local repository and push it on Github (new project)
Now, you need to create a repository on GitHub - https://github.com/new
Workflow 2
You already have a local repository; you want it to add a remote repository on it
Workflow 3
You already have a repository on GitHub, and now you want to set it up on your local computer.
I hope this article will help you to GITing better; happy Coding!