Skip to content
Open
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
32 changes: 31 additions & 1 deletion git.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,41 @@ Updating edd5eec..72537f4
error: Your local changes to the following files would be overwritten by merge:
```

### If you *don't* care about local changes
### If you *don't* beyonce about local changes

Force getting all the remote data

```
git fetch --all
git reset --hard origin/master
```
### Git Notes
```
To terminate a hanging command = ctrl-z OR ctrl-c OR escape OR q

mkdir = make a directory

cd = change direction

ls = listing files

.. = this location

git add __________ (specific file name)
git commit -m "MESSAGE ABOUT CHANGES MADE"

git status = what files are currently being staged

git remote -v = which github cloud is this using (tells what places you are looking from, where code originates)

git push = pushes all code onto github

```
### Books/Sites to READ
[Python for Biologists Book](http://pythonforbiologists.com/)

[Programming for Biologists](http://www.programmingforbiologists.org/)

[Git Cheat Sheet](https://services.github.com/kit/downloads/github-git-cheat-sheet.pdf)

![picture](https://i.imgflip.com/b94g3.jpg)