Scenario:
Create a new Project. Save the repository on GITHub
Solution:
- Download https://git-scm.com/downloads and setup
- Create account on GitHub https://github.com/
- Check if is GIT tracking your project.
- Command Line -> Navigate to Test Git Project folder -> git status
- If error: fatal: Not a git repository (or any of the parent directories): .git, i.e. folder is not being tracked by git.
- To initialize GIT
- Command Line -> Navigate to Test Git Project folder -> git init
- Github account. -> '+' icon -> 'New Repository' -> "Test Git Project" - > Create Repository'.
- Connect local folder to Github repository.
- Copy link under the title, e.g. "https://github.com/.../Test-Git-Project.git"
- In Command line run below commands:
- Github -> repository screen -> refresh Project
- Your Project/files would now be available on GITHub.
1 2 3 4 | git remote add origin https://github.com/mindplace/test-repo.git git add . [add all files to staging area] git commit -m "intial commit" git push origin master [Login] |
No comments:
Post a Comment