DEV Community

Smiley
Smiley

Posted on

Exploring Git and GitHub...

I know about the basic git commands, like

Git clone, 
Git checkout -b 'branch-name', 
Git add <filename> or .(all), 
Git commit -m 'commit-name',
Git push origin, status
Enter fullscreen mode Exit fullscreen mode

That's it. I used it for creating PRs and cloning repos in my internships. I lost touch with the tool by working as an Analyst.

Now, when I am creating a project and after committing the changes, I wanted to create a Pull Request(PR), then I came to know PR is not a native command of Git; it is a command of GitHub, so I need to use

'gh'
Enter fullscreen mode Exit fullscreen mode

in the command to create a PR from my terminal. Just used

gh pr create

for creating a pr from my terminal(very easy, huh!)

That's a new learning for me.

Also, if any reader wants to share more commands apart from the ones I listed for software development, please add them in the comment section; it will greatly help me and others who are on the same learning path.

Thanks for reading my random learning experience!!!!

Top comments (0)