Git-steps
The series of steps you can use to commit a document in your GitHub from your local device, remotely.
--------------- STEPS TO MAKE A REMOTE GITHUB REPOSITORY-----------------
--------------- MADE BY MAINAK CHAUDHURI ---------------
-
Create a git repository
-
Press on "Download code" and copy the [email protected]:"Repository path in github"
-
Make a folder in local device with same name as the github repo name
-
Open GitBash inside the repository file in local system
-
Type these commands :
i. git config --global user.name "Your User Account name"
ii. git config --global user.email your email //(without inverted commas)
iii. git clone [email protected]:AccountName/Reponame
iv. cd Repository/
You can move the files from the main file to the newly created blank file with the same name.
v. git add .
vi. git status
vii.git commit -m "any comment" filename.extension
viii. git push -u origin [branch name as per your repository branch] <main/master>
- For modification :
i. git status
ii. git commit -m "any comment" filename.extension
iii.git push -u origin master.
- Finally :
| | | CHECK YOUR GITHUB AND REFRESH THE PAGE | | | | |
THANK YOU πππ
Made by Mainak