_notitle
Made by adang24
{alondra}'s website
Made by alondra00
Cameron & Gabe's website
Made by cjohnston20
Eli's website
Made by echapman26
Ella's website
Made by ella
Hassan's Website
Made by hshah26
Josh Creasey's website
Made by jcreasey23
Jaga's website
Made by jmunkhbat24
jr's website
Made by jrivera26
Kalen's website
Made by kalenWinder
Lauren's website
Made by lpodhajsky26
OWEN's website
Made by ofoster
Phuc's darkmode
Made by pcai22
Payton's website
Made by plo23
Phuc Cai's website
Made by yourname
{Abed}'s website
Made by A_page
Hello world
Made by HelloWorld
{Your name}'s website
Made by Kcostales25
Ava's website
Made by aD3nnis
{Your name}'s website
Made by abergman23
ianoka
Made by ianoka-ayembe23
Jesse's website
Made by jarnold25
{Your name}'s website
Made by kkramer22
page
Made by linus
Git Workshop
Made by monkhoo
Nate's website
Made by nkerber
Niz's Website
Made by nshakya23
Phuc's website
Made by pcai22
Sydney's website
Made by sbeers24
Viktor Pisarenko's website
Made by vpisarenko23
Made by Whitworth ACM club - 2022
Website link: acm.meorung.me
Github link: github.com/hoangphuc05/git-workshop
Ella Bongat
Cameron
Gabe
Lauren Podhajsky
Josh Creasey
Josh Creasey
Eli Chapman
BALLER BOIS 4 LYFE CAM & GABE RULEZZZZ
Cameron
Gabe
Josh Creasey
93b73d2d149f7ce6444d3509c08de8dc1bab5969 Phuc
Replace this line (line 10), with the following content: Jaga
Owen Foster
fee139a722e7c4 Payton L
Jrivera
Abdallah Abualkheir (Abed)
Ava
Manix Torres
Kaelan Kramer
git
Katrina Costales
Niz
Munkhoo
Andrew Bergman
Viktor Pisarenko
Phuc
Michael Lie
To use git, you need to first set up your identities....
git config --global user.name "Your name"
git config --global user.email "Your email"
You can clone this repository by using VS Code UI or using command line
Add some picture here
git clone https://github.com/hoangphuc05/git-workshop.git
A new folder with the name git-workshop will be create.
Now, let's try adding some files to our projects.
Let's open the folder
and create a file with your Whitworth username, it should look something like this: pages
(Example: {yourWhitworthUsername}.html
)
Open the file that you just create and add your own website. Here's a template:pcai22.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{Your name}'s website</title>
</head>
<body>
<h1>This is {your name} awesome website</h1>
</body>
</html>
New, modified, and/or deleted files need to be staged before pushing them to the master branch on git.
You can add all files that you made change (create, edit, delete) by using git add
git add .
You can commit your change with a message using the flag -m
git commit -m "Your commit message"
You can pull changes from remote repository by using git pull
git pull
git push
You can pull changes from remote repository by using git pull
git pull
Add your name and link to your email on line 10 of the readme file
[Your name](mailto:yourEmail)<br/>
You can stage your changes by using git add
git add README.md
You can commit your changes with a message using the flag -m
git commit -m "Your commit message"
Don't do this until we told you to
You can pull changes from remote repository by using git pull
git pull
If the remote repository contain changes that cannot be merged automatically, you will need to resolve the conflict manually
In this specific example, you want to add everyone name. Choose
to add both remote and local changes.accept both change
git add .
git commit -m "Merge <yourname> to the contributor list"
git pull
git push
Collaborating and making change directly on
can be problematic sometimes, especially when there are services relying on your main
code base to function. To avoid publishing unfinished code on main
while still saving and sharing your code with your team, you can create a new branch (ex: main
) and publish your code on that branch. Once the feature is properly implemented, you can merge your code from development
to development
main
git branch
You can create a new branch by doing git checkout -b <branch name>
Example:
git checkout -b development
After creating a new branch, you can move your work place to that specific branch by doing
git checkout <branch name>
You can always come back to main or to any other branch by doing
git checkout main
Just like main branch, you can push your development branch online
git push --set-upstream origin <your branch name>
Once you want to publish your change to main, you can switch to
branch, and merge your current development branch to branchmain
git checkout main
git merge development
Another way of publishing your change is to create a pull request, this will help your team keep track of what being added to main and comment those changes if needed