Home >
Git >
Make a GitHub Repository
Make a GitHub Repository
- Log into GitHub and make a new repository. We’ll call it ‘funkypoop’ here.
- Download Git for Windows (https://gitforwindows.org/)
- Make a master Git folder if you haven’t already (one that holds all your Git projects)
- Go into the master folder.
- Type ‘git init’ to start git
- Type ‘git clone https://github.com/peet1187/funkypoop.git’ (that URL will be different for each project. The GitHub website has a place somewhere where they give you that code for ‘Quick installation’. Choose the ‘HTTPS’ option.
- BTW: when you type the thing above into your terminal, it’ll say ‘Warning: You appear to have cloned an empty repository’.
- Alternatively you could have uploaded your initial files through the GitHub website and it probably wouldn’t give you this message.
- Go into the project folder (‘cd funkypoop’) in terminal.
- Type ‘git add .’ to add files to Git’s list of files it will track from now on (this is not commit or push).
- Type ‘git status’ to see status (this is just for fun).
- Type ‘git commit -m “first commit”‘ to commit the new files.
- Type ‘git push’ to push the files to GitHub.