Monday, June 5, 2017

Setting up fresh github repo


Setting up fresh github repo:


1. first visit github and create a user.

2. visit the url  like https://github.com/<test_user>

3. goto "repositories tab" - click on "new"

4. give a name "my_new_repository"

5. Now you should be able to access this link:

https://github.com/<test_user>/<my_new_repository>



Now, open terminal and follow the *sample* workflow to freshly initialize your github repo:


echo "# simple_testing" >> README.md
 

git init
 

git add README.md
 

git commit -m "first commit"

git remote add origin https://github.com/<user name>/simple_testing.git
 

git push -u origin master
 

Here, simple_testing is the "repo" name created.

No comments:

Post a Comment