- Open Terminal.
- Change the current working directory to your local project.
- Initialize the local directory as a Git repository.
$ git init - Add the files in your new local repository. This stages them for the first commit.
$ git add . # Adds the files in the local repository and stages them for commit. To unstage a file, use 'git reset HEAD YOUR-FILE'. - Commit the files that you've staged in your local repository.
$ git commit -m "First commit" # Commits the tracked changes and prepares them to be pushed to a remote repoUpdate Git------------------$ git remote add upstream https://github.com/siumhossain/Personal-Blog.git$ git pull upstream master$ git status$ git push origin master 😤Ignore sensitive information.$touch.gitignoreand add file or folder name for ignore those from uploading those file in repo

Comments
Post a Comment