Starting our Git repository



Note 
Check your current working directory with a pwd (Mac OS X/Linux) or cd (Windows) command before initializing the repository. 


On Command Line:
$ git init
Initialized empty Git repository in ~/your-repo/.git/
$ git config --global user.name "Your Name"
$ git config --global user.email you@example.com
Create a  .gitignore file
$ git status
$ git add --all .
$ git commit -m "Some Useful Message."
$ git remote add origin https://github.com/<your-github-username>/<repo-name>.git
$ git push -u origin master

Comments

Popular posts from this blog

HOW TO USE DOCKER

Flutter Native Application Development

SINGLE LOOP SORTING TECHNIQUE