This is a temporary repo to teach the Lexos team about basic git.
- .gitignore
- all the files/directories that are listed in this file will be ignored by git. At this moment we are only ignoring the .idea folder which contains project specific settings of each developers IDE (PyCharm).
- .git/
- the folder with all the git information.
- add
- add the files that you have edited and want to push to the remote repo
- commit
- make a local image of the current program
- kind of like creating a restore point
- pull
- sync from the remote to local
- push
- sync from the local to remote
- reset (
--soft
--hard
and undo add)- reset your program status to a commit
--soft
only reset your git info to that restore point (thereby losing all the commits in between)--hard
reset all the program, including the git info to a certain commit- undo
add
command
- reset your program status to a commit
- status
- show the status of the current git information
- diff
- show the difference between current and a commit (default is the latest commit)
https://www.atlassian.com/git/tutorials/saving-changes/git-add
$ vi readme.md
$ git add readme.md
$ git commit -m "small edits to readme; just practing"
$ git pull
$ git push
-
Header
-
Emphasis
- _Italic_ will be Italic or *Italic* will also be Italic.
- __bold__ will be bold or **bold** will also be bold.
- _**Combined**_ will be Combined.
-
- Format: ![Alt Text](url)
- To change image size - <img src="https://your-image-url.type" width="100" height="100">
-
Links
- https://github.com/ - Links are automatically live!
- GitHub - [text_here](link_here)
-
Unordered List
* Item 1
* Item 2Example:
-
Mark LeBlanc
- Computer Science Professor
- Wheaton College
-
Weiqi
- Computer Science and Mathematics double Major
- Wheaton College
-
-
Ordered List
1. Item 1
2. Item 2Example:
- Wheaton College
- Norton
- MA
- USA
- North America
-
Task Lists
- [ ] item one
- [ ] item twoExample:
- Javascript update
- CSS update
- Hello
-
Emoji
- GitHub supports emoji!
- :emoji_name_here:
- GitHub Emoji List
-
Blockquotes
- > creates a blockquote
This is an example blockquote
- > creates a blockquote
-
@mentions creates @phuens
-
Strikethrough: <del> tags </del> creates
strikethrough -
Table
First Header Second Header Content cell 1 Content cell 2 Content column 1 Content column 2 Example:
First Header Second Header Content cell 1 Content cell 2 Content column 1 Content column 2 -
Fenced Code Block
```javascript function test(){
console.log("Enter a message");
}
```Example:
function test(){ console.log("Happy birthday, Weiqi!"); }