Skip to main content

GITHUB Instructions (GITHUB USEFUL COMMANDS)



1) create repository

2) copy HTTPS

3)go to project directory and open git bash

4) ls

5) git init

6) git remote add origin (paste the link of number 2, don't give any bracket)

7) git remote -v

8) git add .

9) git commit -m "First Commit"

10) if the above line of code ask the question like who you are?
    than use the following code:

git config --global user.email "some@email.com"
git config --global user.name "ha"

    than use the following code:
git commit -m "First Commit"

11) git push origin master

12) if number 11 says rejected! than use the following command:

git push -u -f origin master


for any help use the following command:
git help


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

To update any changes to github:
_____________________________

1)  git status
2) git add .
3) git status
4) git commit -m "any message regarding commit"
5) git status
6) git log ------------------------not necessary
7) git push origin master


TO UPLOAD IN A NEW GITHUB ACCOUNT: USE THE FOLLOWING CODE TO GET ACCESS TO
ANOTHER GITHUB ACCOUT:

git config --local credential.helper ""

the above code will ask for username and password then you can push your project
git push origin master


Thanks for reading. You can bookmark this web-page for regular use purpose.

Comments

Popular posts from this blog

Laravel Vuejs Basic Setup

In this article we will see how to setup vue with laravel. 1) Create a laravel project: laravel new laravue 2) In web.php create a temporary route:  Route :: get ( '/test' ,  function  () {      return   view ( 'welcome' ); }); So, when you will see the welcome page once you hit the  http://laravue.test/test  url. 2) In terminal run:  npm install 3) npm install vue (In package.json file you will see that vue dependency has been added successfully) 4) Now go to resources -> js -> app.js file. Here we will have to load the vue. write the following lines in app.js.  require ( './bootstrap' ); window . Vue  =  require ( 'vue' ); const   app  =  new   Vue ({      el :   '#app' }); (Here, vue js will execute and control anything that will be inside the app id. So, for our example  let's put the app id inside the welcome view). So, inside welcome.blade.php 's body...