Git configuration and first push

Navigate to the local project directory and create a git repository:

git init

To add all files to next commit, run following:

git add .

To check git status, use this:

git status

Run command to make your first commit:

git commit -m "Your comment"

Setup link to your github repository and push changes:

# link the local repo to the remote one
git remote add origin <Link to GitHub Repo>

# check the link
git remote -v

# push the committed changes to the remote repo
git push -u origin master
I do product consulting, build MVPs and teach people to build products themselves. Work with me →