These days everyone is using github as source code repository.
Below is the list of commands to push your changes to github repository from local for the first time
Check out list of commands
Idea behind this is to create local git repository & then push it to github repository
1. How to initialize the local git repository.
git init
2. To add all the files to the local git repository
git add .
3. Check the status of local repository.
git status
4. How to commit change to the local git repository.
git commit -m 'your message'
5. Connect local git repository to github.
git remote add origin 'github_repository_url'
6. Push your changes to github
git push -u origin master
.
Checkout the below video for complete understanding
Comments
Post a Comment