Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

working directory warning and git status intro #304

Merged
merged 1 commit into from
Mar 29, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion en/deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ Create a file named `.gitignore` in your `djangogirls` directory with the follow

and save it. The dot on the beginning of the file name is important! As you can see, we're now telling Heroku to ignore `local_settings.py` and don't download it, so it's only available on your computer (locally).

Next, we’ll create a new git repository and save our changes. Go to your console and run these commands:
Next, we’ll create a new git repository and save our changes.

> __Note__: Check out your current working directory with a `pwd` command before initializing the repository. You should be in the `djangogirls` folder.

Go to your console and run these commands:

$ git init
Initialized empty Git repository in ~/djangogirls/.git/
Expand All @@ -142,6 +146,28 @@ Next, we’ll create a new git repository and save our changes. Go to your conso

Initializing the git repository is something we only need to do once per project.

It's a good idea to use a `git status` command before `git add` or whenever you find yourself unsure of what will be done, to prevent any surprises from happening (e.g. wrong files will be added or commited). The `git status` command returns information about any untracked/modifed/staged files, branch status and much more. The output should be similar to:

$ git status
On branch master

Initial commit

Untracked files:
(use "git add <file>..." to include in what will be committed)

.gitignore
Procfile
mysite/__init__.py
mysite/settings.py
mysite/urls.py
mysite/wsgi.py
manage.py
requirements.txt
runtime.txt

nothing added to commit but untracked files present (use "git add" to track)

And finally we save our changes. Go to your console and run these commands:

$ git add -A .
Expand Down