You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
155 lines
2.6 KiB
155 lines
2.6 KiB
3 years ago
|
---
|
||
|
|
||
3 years ago
|
Alias: ["Git repo"]
|
||
3 years ago
|
Tag: ["Admin", "Computer", "Cloud", "Privacy"]
|
||
|
Date: 2021-08-18
|
||
|
DocType: "Product"
|
||
|
Hierarchy: "NonRoot"
|
||
|
TimeStamp: 2021-08-18
|
||
3 years ago
|
Product:
|
||
|
Type: "IT"
|
||
3 years ago
|
Link: "https://git-scm.com/"
|
||
3 years ago
|
Value: "Free"
|
||
3 years ago
|
|
||
|
---
|
||
|
|
||
|
Parent:: [[Storage and Syncing]], [[Privacy & Security]], [[Selfhosting]]
|
||
|
|
||
|
---
|
||
|
|
||
|
 
|
||
|
|
||
|
```button
|
||
|
name Edit Product parameters
|
||
|
type command
|
||
|
action MetaEdit: Run MetaEdit
|
||
|
id EditMetaData
|
||
|
```
|
||
|
^button-GitHubEdit
|
||
|
|
||
|
```button
|
||
|
name Save
|
||
|
type command
|
||
|
action Save current file
|
||
|
id Save
|
||
|
```
|
||
|
^button-GitHubSave
|
||
|
|
||
|
 
|
||
|
|
||
3 years ago
|
# Git
|
||
3 years ago
|
|
||
|
 
|
||
|
|
||
|
```ad-abstract
|
||
|
title: Summary
|
||
|
collapse: open
|
||
3 years ago
|
Git is a repository of data and files enabling versioning, tracking and syncing working files. It offers public and private repositories and therefore a good solution for syncing files.
|
||
3 years ago
|
The tool is predominantly used by developers collaborating but can be used for personal use.
|
||
|
```
|
||
|
|
||
|
 
|
||
|
|
||
|
```toc
|
||
|
style: number
|
||
|
```
|
||
|
|
||
|
 
|
||
|
|
||
|
---
|
||
|
|
||
|
 
|
||
|
|
||
|
### Characteristics
|
||
|
|
||
|
 
|
||
|
|
||
3 years ago
|
Git is a service originally designed for developers to collaborate on code. It offers the following features:
|
||
3 years ago
|
- Storage for files & folders
|
||
|
- Secure data transfer protocol
|
||
|
- Versioning, change tracking
|
||
|
- Cross-platform
|
||
|
|
||
3 years ago
|
Implementations are aplenty, including GitHub or [[mfxm Website Scope#Git instance|Gitea]].
|
||
|
|
||
3 years ago
|
 
|
||
|
|
||
|
---
|
||
|
|
||
|
 
|
||
|
|
||
|
### Scripts
|
||
|
|
||
|
 
|
||
|
|
||
3 years ago
|
This section highlights different scripts to make Git work on different devices.
|
||
3 years ago
|
|
||
|
 
|
||
|
|
||
|
#### Desktop
|
||
3 years ago
|
Git folder is set up through a desktop App (Github, Gitup, else...) and comprises a folder of Git executables.
|
||
3 years ago
|
From the Terminal pointing towards the Git folder
|
||
|
|
||
|
`cd /folderpath`
|
||
|
|
||
|
a few actions can be initiated:
|
||
|
|
||
|
**Download docs**
|
||
|
|
||
|
```
|
||
|
git pull (--rebase) (optional: 'remote name' 'branche name')
|
||
|
or
|
||
|
git fetch
|
||
|
```
|
||
|
|
||
|
**Upload docs**
|
||
|
|
||
|
```
|
||
|
git add --all/'Folder or File name'
|
||
|
git commit -m "name of the update for versioning"
|
||
|
git push (optional 'remote name' 'branch name')
|
||
|
```
|
||
|
|
||
|
**Create a new branch**
|
||
|
|
||
|
```
|
||
|
git checkout -b 'branch name'
|
||
|
git push origin 'branch name'
|
||
|
```
|
||
|
|
||
|
 
|
||
|
|
||
|
#### iOS
|
||
|
|
||
3 years ago
|
iOS offers a simpler solution through [Working Copy](https://workingcopyapp.com), an App to manage Git repositories from an iPhone.
|
||
|
Select to sync folders from your phone to your Git repository through the 'Sync Folder' option.
|
||
|
The App then syncs on the phone. Any changes need to be committed and pushed to Git through the App.
|
||
3 years ago
|
|
||
|
 
|
||
|
|
||
|
---
|
||
|
|
||
|
 
|
||
|
|
||
|
### Further steps
|
||
|
|
||
|
 
|
||
|
|
||
|
- [x] Buy Working Copy Pro (£17.99)
|
||
|
|
||
|
 
|
||
|
|
||
|
---
|
||
|
|
||
|
 
|
||
|
|
||
|
### Documentation
|
||
|
|
||
|
 
|
||
|
|
||
|
- [Working Copy User Guide](https://workingcopyapp.com/manual.html#)
|
||
|
- [GitHub Help](https://guides.github.com/)
|
||
3 years ago
|
- [Gitup docs](https://github.com/git-up/GitUp/wiki)
|
||
3 years ago
|
|
||
|
 
|
||
|
 
|