0% found this document useful (0 votes)
57 views1 page

Github Commands

This document outlines the basic commands for using Github including initializing a local repository, configuring user information, adding and committing files, connecting to a remote repository, and pushing and pulling files. It also provides steps for creating a new repository by initializing a local repo, adding files, and pushing the changes to a remote repository on Github.

Uploaded by

RASI MATHI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views1 page

Github Commands

This document outlines the basic commands for using Github including initializing a local repository, configuring user information, adding and committing files, connecting to a remote repository, and pushing and pulling files. It also provides steps for creating a new repository by initializing a local repo, adding files, and pushing the changes to a remote repository on Github.

Uploaded by

RASI MATHI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Github commands:

1) git init (to initialise git)


2) git config user.name “username”
3) git config user.email “usermail”
4) git add filename
5) git commit -m “message”
6) git remote add remotename “repolink”
7) git remote -v(“to check remote”)
8) git push remotename branchname(to push files)
9) git pull remotename branchname(to receive files from github)
10)git status(to check current status of git)
Steps For new repository:
1)git init
2)git config --global user.name “user_name”
3)git config --global user.email “your_email”
#how to add files from one location to another location
4)git add .(all_files) or file_name
5)git commit -m “message”
6)git remote add remote_name”github_respositary_url”
7)git push remote_name branch_name
8)Goto ------>github ----> Refresh name and check files

You might also like