These are the 10 steps.
- Login to your GitHub account at www.GitHub.com
- Once successful login, create a new repository.
- On your Mac or local machine, open terminal application or any other terminal-like application.
- On your terminal, change your working directory to your local workspace directory (using cd command).
- Type git init to initialise the directory as Git repository.
- Type git add . to add all files to GitHub repository.
- Type git commit -m "First commit from local repository"
- At GitHub page, copy the remote repository URL.
- At terminal, type git remote add origin remoteURL
- Finally, push your local files to remote repository with this command git push -u origin master
No comments:
Post a Comment