Step 1. Clone your repository to your local system
Open a browser and a terminal window from your desktop. After opening the terminal window, do the following:
- Navigate to your home (~) directory.
As you use GitHub more, you will probably work in multiple repositories. For that reason, it’s a good idea to create a directory to contain all those repositories.
- Create a directory to contain your repositories.
- From the terminal, update the directory you want to work in to your new
- From GitHub, go to your Repository Name repository.
Cloning into '
If you get this error, enter the following at the command line:
git config --global core.askpass
With the repository on your local system, it’s time to get to work. You want to start keeping track of all your space station locations. To do so, let’s create a file about all your locations.
- Go to your terminal window and navigate to the top level of your local repository.
3. git add –all
4. git commit -m "Email Activated at Registration"
If want to upload Other named Origin Let's try with Command -
$ git checkout master
# remember where the master was referencing to
$ git branch previous_master
# Reset master back to origin/master
$ git reset --hard origin/master
you can recreate master directly at origin/master with:
git checkout -B master origin/master
The git checkout man page mentions:
If -B is given, <new_branch> is created if it doesn’t exist; otherwise, it is reset. This is the transactional equivalent of
$ git branch -f <branch> [<start point>]
$ git checkout <branch> sarkeralamin
git push origin sarkeralamin
Write GitHub username and Password.
Everything Done. Cheers!!