Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Git-commands.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

Git commands

1) git init # for initialising the repository

2) git status # for checking the status

3) git add # for adding the files

4) git commit -m "commit name" # commit the changes

5) git config --global user.email "email"

6) git config --global user.name "name"

7) git remote add origin "repository url" # form speciying the remote location

8) git push -u origin master # to push the changes online

9) git pull # to pull the changes offline

10) git clone https://github.com/gujral1997/git_workshop
Binary file added github.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions hello_world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ int main()
{
cout<< "Hello Github,";
cout<< "Ansh!";
cout<<"abhishek maira";
return 0;

}
Binary file added progit.pdf
Binary file not shown.