Skip to main content

Command Palette

Search for a command to run...

Push Your First Code On GitHub

Updated
โ€ข1 min read
Push Your First Code On GitHub
P

๐Ÿ‘‹ Hey! I'm Prakash Naikwadi. I have a Bachelor's degree in Computer Engineering๐Ÿคฉ

I am currently learning๐Ÿ“˜ ๐Œ๐„๐‘๐ ๐’๐ญ๐š๐œ๐ค ๐ƒ๐ž๐ฏ๐ž๐ฅ๐จ๐ฉ๐ฆ๐ž๐ง๐ญ.

๐Ÿ… ๐†๐ข๐ญ๐‡๐ฎ๐› ๐๐ซ๐จ๐Ÿ๐ข๐ฅ๐ž: https://github.com/prakash-naikwadi

๐‡๐ž๐ซ๐ž ๐š๐ซ๐ž ๐’๐จ๐ฆ๐ž ๐ฌ๐ค๐ข๐ฅ๐ฅ๐ฌ๐ž๐ญ๐ฌ ๐ญ๐ก๐š๐ญ ๐ˆ ๐๐จ๐ฌ๐ฌ๐ž๐ฌ๐ฌ๐ž๐...

๐…๐ซ๐จ๐ง๐ญ ๐„๐ง๐: โ€ข HTML5 (Intermediate Level)
โ€ข CSS (Intermediate Level)
โ€ข JavaScript
โ€ข React

๐๐ซ๐จ๐ ๐ซ๐š๐ฆ๐ฆ๐ข๐ง๐  ๐‹๐š๐ง๐ ๐ฎ๐š๐ ๐ž๐ฌ: โ€ข Java โ€ข C โ€ข C++

Thank you for reading. Have a wonderful day๐Ÿค—

We all know how important is that your code should be visible on Github. So here we are discussing some basic git commands to get started.

git init

Usage: git init [repository name]

This command is used to start a new repository.

git add

Usage: git add [file]

This command adds a file to the staging area.

Usage: git add .

This command adds one or more to the staging area.

git commit

Usage: git commit -m โ€œ[ Type in the commit message]โ€

This command records or snapshots the file permanently in the version history.

Usage: git commit -a

This command commits any files youโ€™ve added with the git add command and also commits any files youโ€™ve changed since then.

git status

Usage: git status

This command lists all the files that have to be committed.

git commit

Usage: `git push origin master

This command sends the committed changes of the master branch to your remote repository.

Reference

dzone.com