https://github.com/valery1707/dotfiles-test
https://github.com/valery1707/dotfiles-test
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/valery1707/dotfiles-test
- Owner: valery1707
- Created: 2011-02-08T06:08:12.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2017-04-18T16:52:48.000Z (about 8 years ago)
- Last Synced: 2025-01-23T05:24:09.721Z (3 months ago)
- Language: Shell
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Prepare
```bash
sudo apt-get install git-core
ssh-keygen -t rsa -C "valery1707@some-ident-info"
git config --global user.name "valery1707"
git config --global user.email "valery1707@some-ident-info"
```### Use repo
```bash
cd ~
git init
mv .bashrc .bashrc.orig
```
[Add remote](#add-remote)[Config branch](#config-branch)
[Pull from github](#pull-from-github)
### Add remote
* Work over HTTPS:
`git remote add origin https://[email protected]/valery1707/dotfiles-test.git`
* Work over SSH ([will use ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub](http://help.github.com/msysgit-key-setup/)):
`git remote add origin [email protected]:valery1707/dotfiles-test.git`### Config branch
```bash
git config branch.master.remote origin
git config branch.master.merge master
```### Pull from github
`git pull`### Push to github
`git push`### Change
```bash
git add -f new_file_name.ext
git commit -m 'comment for commit'
```
[Push](#push-to-github)### Create repo
```bash
cd ~
git init
echo '*' > .gitignore
```
[Add remote](#add-remote)