Push Code to Repository

We will proceed to clone our repository that we created in step 2.2 using the following syntax:

git clone https://<your_token>@github.com/<github_account>/<repository_name>.git

With:

  • <your_token> : The token you saved in step 2.1
  • <github_account> : Your Github account username
  • <repository_name> : Your repository name, in this case workshop2

Execution Senquence

  1. Prepare the screen for work MULTIPLE

  2. From the Git bash interface

  • Execute the command git clone using the above mentioned syntax. Please change the information to suit you
git clone https://<your_token>@github.com/<github_account>/workshop2.git

MULTIPLE

  • We will see the workshop2 folder appears
  1. Navigate to the 000058-SessionManager folder
  • Copy all Source Code here except public folder MULTIPLE
  1. Navigate to the workshop2 folder just cloned above
  • Paste all Source Code just Copy MULTIPLE
  1. Return to the Git bash interface
  • Navigate to the workshop2 folder
cd workshop2
  • Push all Source Code to Repository with commands
git add .
git commit -m "Add Source Code"
git push

MULTIPLE MULTIPLE

  1. Access our workshop2 repository interface on Github, we will see the Source Code with the commit message Add Source Code just appeared

MULTIPLE