├── .DS_Store ├── .gitignore ├── content └── first.txt ├── css └── main.css ├── images ├── .DS_Store ├── git.png └── github.png ├── index.html ├── python └── hello.py └── readme.md /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Asabeneh/git-practice/9f3e963460f98487cd74c404cc8734d0580ed660/.DS_Store -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .env -------------------------------------------------------------------------------- /content/first.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Asabeneh/git-practice/9f3e963460f98487cd74c404cc8734d0580ed660/content/first.txt -------------------------------------------------------------------------------- /css/main.css: -------------------------------------------------------------------------------- 1 | body { 2 | color:red; 3 | font-size: 15px; 4 | } -------------------------------------------------------------------------------- /images/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Asabeneh/git-practice/9f3e963460f98487cd74c404cc8734d0580ed660/images/.DS_Store -------------------------------------------------------------------------------- /images/git.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Asabeneh/git-practice/9f3e963460f98487cd74c404cc8734d0580ed660/images/git.png -------------------------------------------------------------------------------- /images/github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Asabeneh/git-practice/9f3e963460f98487cd74c404cc8734d0580ed660/images/github.png -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Git and GitHub 4 | 36 | 37 | 38 |
39 |

Git and GitHub

40 |
41 |
42 |
43 |

Git

44 |

45 | Git is a very control software that allows to track 46 | changes in a project 47 |

48 |
49 | 50 |
51 |

GitHub

52 |

GitHub is an online platform to store code

53 |
54 |
55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /python/hello.py: -------------------------------------------------------------------------------- 1 | print('hello world') 2 | print("My Name is Meseret") 3 | print("Here is my first git up work") 4 | print("Git is really good") 5 | # This program adds two numbers 6 | 7 | num1 = 2 8 | num2 = 6 9 | 10 | # Add two numbers 11 | sum = num1 + num2 12 | 13 | # Display the sum 14 | print('The sum of is ', sum) 15 | 16 | 17 | def my_function(m): # Define a function 18 | return m**2 # return the square of the number 19 | print(my_function(10) ) # Just display the result 20 | 21 | def my_function(m): 22 | return 5 * m 23 | print(my_function(3)) 24 | print(my_function(5)) 25 | print(my_function(9)) 26 | print('thank you') 27 | print("I corrected") -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # Git and GitHub Lesson 2 | 3 | Git is an open source version control software. 4 | 5 | ## Git 6 | 7 | You can download Git and start using this version control software in all your developments 8 | 9 | ### Subsubtitle - Heading 3 10 | 11 | This is a log of *Git* 12 | 13 | ![Git log](./images/git.png) 14 | ![Git log](./images/github.png) 15 | 16 | The code blow is **Python** 17 | 18 | ```py 19 | def make_square(n): 20 | return n ** 2 21 | ``` 22 | 23 | We should have the link of [30DaysOfPython](https://github.com/Asabeneh/30-Days-Of-JavaScript). 24 | 25 | Colons can be used to align columns. 26 | 27 | | Names | Ages | Country | 28 | | ------------- |:-------------:| -----:| 29 | | Asab | 250 | Finland | 30 | | Philip | 28 | Italy | 31 | | Almaz | 28 | Sweden | 32 | 33 | # Summary 34 | 35 | 36 | What is Git? 37 | What is the difference Git and GitHub? 38 | What is a repository? 39 | 40 | ```sh 41 | git init - to initiate a local repository 42 | git status - to check the status of the repository 43 | git log - to see the history 44 | git add filename - to add a file to the staging the area 45 | git add . - to add all files and directories at once 46 | git commit -m "some message" - allow us to make the change backed up. 47 | git remote add origin url - to connect to the remote repository 48 | git push -u origin master - uploading the changes to remote repository 49 | git pull - allow us to download codes from remote repository to local 50 | ``` 51 | --------------------------------------------------------------------------------