Browse Source

Merge branch 'main' of git.internal.gharke.com:KenSchae/documentation

main
Ken Schaefer 2 years ago
parent
commit
fe831773e8
  1. 40
      Git/git.md
  2. 4
      Linux/linux-commands.md

40
Git/git.md

@ -0,0 +1,40 @@
# GIT
## Git basics
### Configure global account information
Important to identify who you are or git will not work. If you are using GitHub, Gitea or other remote service your email and name need to match your remote accounts - otherwise, you won't get your green blocks filled.
You can also configure account information on a repo by repo basis by omitting the --global flag.
```
git config --global user.email "you@email.com"
git config --global user.name "Your Name"
```
### Init
Initialize (e.g., create) a repository. This command will create a working directory under .git
`git init`
### Status
Show the status of the local working directory (repo)
`get status`
### Add content to repo
Must add files and folders to repo before they will be tracked. Can either add individual files, a list of files, or all files.
`git add .`
`git add {list of filenames}`
### Commit
Use this command to commit your changes to the current working branch
`git commit -m "initializing a repo"`

4
Linux/linux-commands.md

@ -7,7 +7,3 @@
ifconfig -a ifconfig -a
``` ```
### Change DNS Server
```
sudo nano /etc/resolv.conf
```
Loading…
Cancel
Save