Skip to content

Latest commit

 

History

History
74 lines (52 loc) · 2.28 KB

File metadata and controls

74 lines (52 loc) · 2.28 KB

Create your own repository with your changes

We'll start practicing what we've learnt by creating a github repository and making our changes available through it.

  1. Use or create your github account.
  2. Download Git if it's not already installed in your system.
  3. Open your computer's Terminal and type git. If everything is ok you should not see any error message.
  4. go to your documents directory and create a new folder for this training.
$ cd documents
$ mkdir push-dev
$ cd push-dev
  1. By staying at the push-dev folder, Clone this repo:
$ git clone https://github.com/pushdev-code/git-tutorial.git
$ cd git-tutorial
  1. Create a new branch with following this name convention:
$ git checkout -b feature/your-full-name
  1. go to 4-students folder and create a markdown file using your name:
$ cd 4-students
$ touch your-full-name.md

Edit this file and include some comment about your opinion on Git.

Note: touch command won't work on Windows, use echo.> your-full-name.md.

  1. Add this file to the repository:
$ git add 4-students/your-full-name.md
  1. Commit your changes, including a good commit message:
$ git commit -m "Include a meaningful description of your changes"
  1. Make sure to share your github username with us so you can be a collaborator and have permissions to push code and create Pull Requests, they will be necessary for the upcoming steps.

  2. Push your changes to the remote branch:

$ git push -u origin feature/your-full-name
  1. Go to https://github.com/pushdev-code/git-tutorial and create a new Pull request. The button for your branch should appear when the page has loaded. If the button doesn't appear, click on pull requests link.
  • Make sure your Pull request base is the master branch.
  • Please include pushdev-code, fabianmarinog and juancho11gm as reviewers so your changes can be approved.
  • Changes can be requested by the reviewers, check your email for any updates.
  • Wait until the Pull request is approved and merged into master.
  1. To see your changes in the master branch:
$ git checkout master
$ git pull

That's it. Your changes should be now part of the main master branch.