HTML Source Code: View on GitHub
30-minute free Git and GitHub crash course!
Web developers unfamiliar with Git and GitHub or those who've heard of them but don't know where to start.
repo = repository (where store your stuff)
README is a front page where everyone reads.
Git for Windows > I have WSL2 installed before.
Pushing (Is the act of sending files from the computer to GitHub)
As of August 13, 2021, GitHub no longer accepts account passwords when authenticating Git operations. Instead, use personal access tokens (PATs) or SSH keys.
Naming difference observed—main versus master—is due to a change by GitHub in late 2020. The default branch name for new repositories changed from master to main for inclusivity.
Please tell me who you are.
Run:
1) git config --global user.email "you@example.com"
2) git config --global user.name "Your Name"
git diff README.md
git log
way better [git log] method
git log --topo-order --all --graph --date=local --pretty=format:'%C(green)%h%C(reset) %><(55,trunc)%s%C(red)%d%C(reset) %C(blue)[%an]%C(reset) %C(yellow)%ad%C(reset)%n'
succeeded add this to .ipconfig to the computer
Need to synchronize your local repository with the remote repository before you can push your changes. Here's how to do it:
**Pull the Latest Changes**
git checkout
git checkout Commit Hash (Commit ID)
git checkout main
Plug in for Visual Studio & Learn programming language.
More learning
way better [git log] method
Git Essentials — The step-by-step guide to Git mastery | Udemy
http://gitforeverybody.com/
Command: cd \Users\CHAIBENG\AI\My_Portfolio_Github
Command: git remote -v
Before making any changes, it's always a good idea to fetch the latest changes from GitHub. This won’t merge the changes into your local repository, but it will update your remote-tracking branches.
Command: git fetch origin
Ensure you are on the correct branch. If you're unsure which branch to use, it's usually the main or master branch. You can check your current branch with:
Command: git branch
Pull the changes from GitHub to your local repository. This will merge the changes from the remote branch to your local branch:
Command: git pull origin [branch-name]
Command:
git add .
git commit -m "Your commit message"
Then, push your changes to GitHub:
Command: git push origin [branch-name]
Finally, verify that your local repository is in sync with your GitHub repository by visiting https://github.com/m-chuu/MyPortfolioRepo.
Command: git remote add origin
Command: git add .
Command: git commit -m "Initial commit"
Command: git push -u origin master