a test webpage to learn git / github
WHEN WORKING ON SHARED PROJECT
CREATE REPOSITORY IN GITHUB
- New Repository - Repository Name - Create Repository (with ReadMe doc)
- Create New File or Upload File
- Commit directly to Master Branch
CLONE REPOSITORY TO LOCAL PC
- In Github: Clone or Download - copy URL
- In SourceTree: New - Clone from URL - paste URL, choose destination path (create new folder in pc directory)
MAKE CHANGES ON LOCAL PC
- In Atom (or ANother text editor): make changes and save
PUSH CHANGES TO GITHUB
- In SourceTree: Branch (create new branch)
- In SourceTree: Click 'Pull' (pull up-to-date Master Branch from Github, in case any changes committed in meantime)
- In SourceTree: Make sure on New Branch then click 'Commit' (commit locally)
- In SourceTree: make sure on New Branch then clich 'Push'
- In Github: Compare and Pull Request - Create Pull Request - Merge Pull Request - Confirm - Delete Branch