How to transfer a new local Project directory to GITHub?
- johnsontitus
- Apr 26, 2020
- 1 min read
Updated: Apr 28, 2020
1. Create a new repository in GITHub
2. Copy the repository url
3. Open git bash command window
4. Type the command - git clone <CLONE-URL>
5. navigate into the new directory created by the clone operation: cd <clone directory>
6. Type the command - git config --global core.autocrlf true
7. Copy the folders/subfolders/files to the local directory
8. Move them to the staging area with the command - git add .
9. Give the command - 'git status' to ensure that all folders/files are moved to staging area.
10. Commit them - git commit -m "initial commit"
11. Type the command - git push -u origin master
Note: To learn more refer to https://trailhead.salesforce.com/content/learn/modules/git-and-git-hub-basics


Comments