Task 1: Bash Here. You Will See This Screen
Task 1: Bash Here. You Will See This Screen
7. Open your file index.html in notepad or notepad++. Add these lines of code & save
<html>
<head>
<title> My Title </title>
</head>
<body>
My First Page
</body>
</html>
8. Open resources.txt and Write your name and Save this file
9. Initialize a Git repository/working directory
• git init
• Check your Folder, you will see .git folder. And within this folder you will find
Git Related Folders and files.
• Press ‘i’ to enable insert mode & type some text like Initial Commit or
any text
• To Exit - Press ‘Esc’ Key and type ‘:wq’
15. After all commit, Check Status of Working directory (This will show you message like
nothing to commit, working tree clean)
• git status
16. Make changes to resources.txt. Add few names of your friends
17. Check with git status, it will show (changes not staged for commit)
• git status
18. Add file or files
• git add .
19. Commit chages in your working directory with commit message
• git commit -m ‘Changed resouces.txt’
20. Check with git status, it will show (changes not staged for commit)
• git status
3. Now add files with this Command on New Branch & add some lines of code & save.
• touch b1.html
4. Add this new file
• git add .
5. Commit changes with commit message
• git commit -m ‘Added New File b1.html’
6. Push the new branch on github
• git push origin <new-branch-name>
-ex: git push origin branch1
7. Check on your github, you will now see 2 branches
8. On your github, check master and branch1. And find what is the difference with file
count
9. For Merging your changes on New Branch to Master: follow these steps:
• Git checkout master
• Git merge <new-branch-name>
-ex: git merge branch1
• git push origin master
10. Check in your github for Master, you will find the new file you have added as b1.html
Task 4 – GUI
1. Download github desktop from https://desktop.github.com/
2. Run and login with your github credentials
3. Create a new repository (either on github.com or using github desktop)
Or
Select the repositories you have in your github
4. Add Some Files
5. Show your effort on following:
• Commit
• Push
• Pull
• Merge