https://github.com/mhmdsami/gitting-started
Gitting Started: Getting started with Git & GitHub
https://github.com/mhmdsami/gitting-started
git github
Last synced: 10 months ago
JSON representation
Gitting Started: Getting started with Git & GitHub
- Host: GitHub
- URL: https://github.com/mhmdsami/gitting-started
- Owner: mhmdsami
- Created: 2022-10-20T15:27:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T12:27:55.000Z (over 2 years ago)
- Last Synced: 2025-06-13T10:02:46.139Z (11 months ago)
- Topics: git, github
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 1
- Forks: 19
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Getting started with Git & GitHub
## Git & GitHub: An overview
- Git: In a nutshell.
- GitHub: Home to most OSS.
- Alternatives to Git.
- Alternatives to GitHub.
## Getting Started with Git
## Installing [`git`](https://git-scm.com/)
### Linux
Debian/Ubuntu
```
apt-get install git
```
Fedora
```
yum install git
```
Arch Linux
```
pacman -S git
```
### Windows
Install using the [Windows Installer](https://git-scm.com/download/win)
or using `winget`
```
winget install --id Git.Git -e --source winget
```
### MacOS
using `homebrew`
```
brew install git
```
## Configuring `git`
```
git config --global user.name [name]
```
```
git config --global user.email [email]
```
## Few Commands in `git`
- command: `git init`
```
git init
```
- command: `git add`
```
git add [filename|dirname]
```
```
git add *.js
```
```
git add .
```
- command: `git status`
```
git status
```
- command: `git commit`
- Writing good commit messages.
```
git commit -m [commit_message]
```
- command: `git log`
```
git log
```
- command: `git remote`
```
git remote add [remote_name] [remote_url]
```
```
git remote remove [remote_name]
```
```
git remote -v
```
- command: `git clone`
```
git clone [url]
```
- command: `git branch`
```
git branch
```
- command: `git checkout`
```
git checkout [branch_name|id|HEAD]
```
- command: `git push`
```
git push [remote] [branch]
```
- command: `git pull`
```
git pull
```
- other commands: `git diff`, `git stash`, `git restore`, `git fetch`, `git rm`, `git rebase`, `git blame`, `git tag`
## GitHub: A quick view
- Creating an account
- Creating a repo
- Pushing changes to the repo
- Pull Requests
- Code Reviews
- Issues