Changes between Version 5 and Version 6 of Csle2022/Agenda/githubadministration
- Timestamp:
- Nov 22, 2022, 3:39:43 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Csle2022/Agenda/githubadministration
v5 v6 1 1 = Github administration = 2 2 3 == = Install Git and create a Github account ===3 == Install Git and create a Github account == 4 4 5 5 To see if you already have Git installed, open up your terminal application. … … 23 23 Navigate [https://github.com] and signup with your details 24 24 25 == = Install source tree on your computer ===25 == Install source tree on your computer == 26 26 27 == = Create a local Git repo ===27 == Create a local Git repo == 28 28 29 === == Every git repository has three trees. A working directory, Index and Head. ====29 === Every git repository has three trees. A working directory, Index and Head. === 30 30 31 31 - Working directory: It contains the actual project files. … … 44 44 }}} 45 45 46 == = Add a new file to the repo ===46 == Add a new file to the repo == 47 47 48 === = From web UI ====48 === From web UI === 49 49 50 50 1.On GitHub.com, navigate to the main page of the repository. … … 70 70 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Csle2022/Agenda/githubadministration/commit-changes-button.png, 600)]] 71 71 72 === = From the terminal ====72 === From the terminal === 73 73 74 74 1.On your computer, move the file you'd like to upload to GitHub into the local directory that was created when you cloned the repository. … … 99 99 }}} 100 100 101 == = Add a file to the staging environment ===101 == Add a file to the staging environment == 102 102 103 103 The "add" command marks changes to be included in the next commit. … … 115 115 `git add --all` 116 116 117 == = Create a commit ===117 == Create a commit == 118 118 119 119 Commits are the building blocks of "save points" within Git's version control. … … 121 121 `git commit -m "update the README.md"` 122 122 123 == = Create a branch ===123 == Create a branch == 124 124 125 === = From web GUI ====125 === From web GUI === 126 126 127 127 1.On GitHub.com, navigate to the main page of the repository. … … 144 144 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Csle2022/Agenda/githubadministration/branch-creation-popup-button.png, 600)]] 145 145 146 === = Creating a branch using the branch dropdown ====146 === Creating a branch using the branch dropdown === 147 147 148 148 1.On GitHub.com, navigate to the main page of the repository. … … 160 160 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Csle2022/Agenda/githubadministration/branch-creation-text-box.png, 600)]] 161 161 162 === Push a branch to GitHub === 163 164 === Create a pull request === 162 == Create a pull request == 165 163 166 164 1.On GitHub.com, navigate to the main page of the repository. … … 186 184 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Csle2022/Agenda/githubadministration/pullrequest-send.png, 600)]] 187 185 186 == Get changes on your Github back your computer == 188 187 189 190 === Merge a pull request === 191 192 === Get changes on your Github back your computer === 193 194 ==== Checking out a repository ==== 188 === Checking out a repository === 195 189 196 190 You can create a copy of your git repository using the clone command. Execute the following command to clone your project directory.