Time for action – making your first commit and push
Now that you're signed up for BitBucket, you've got an empty repository just waiting for some code. We'll use our marble game files to demonstrate how to upload a project; the steps to do so are as follows:
Click-and-drag the entire project directory from its original location to the directory you created for your repository.
Open the Git command line and use the
cd
command to navigate to your repository's directory.As it's the first time we're uploading our project to the repository, we'll want to add every single file with Git. Fortunately, there's a command for that.
Enter the following command in your Git command line to add all the files:
git add --all
This will add changes to all the tracked and untracked files. In the case of projects being added to a repository for the first time, all files are considered to be untracked.
Tip
A tracked file means a file that has already been recognized by Git as part of the working repository, while...