create account

Introduction to Git (1) by python-dev

View this thread on: hive.blogpeakd.comecency.com
· @python-dev ·
$1.23
Introduction to Git (1)
Git is a distributed version control system (DVCS).

## Creating a New Repo
To work with Git, you first need to tell it who you are. You can set your username with the git config command:
```
$ git config --global user.name "your name goes here"
```
Once that is ste up, you will need a repo to work in. Creating a repo is simple. Use the git init command in a directory:
```
$ mkdir example
$ cd example
$ git init
```
Initialized empty Git repository in /home/jima/tmp/example/.git/
Once you have a repo, you can ask Git about it. The Git command you’ll use most frequently is git status. Try that now:
```
$ git status
```
On branch master

Initial commit

nothing to commit (create/copy files and use "git add" to track)
This shows you a couple of bits of information: which branch you’re on, master (we’ll talk about branches later), and that you have nothing to commit. This last part means that there are no files in this directory that Git doesn’t know about. That’s good, as we just created the directory.
👍  , , , ,
properties (23)
authorpython-dev
permlinkintroduction-to-git-1
categorypython-dev
json_metadata{"tags":["python-dev"],"app":"steemit/0.2","format":"markdown"}
created2020-03-16 00:13:42
last_update2020-03-16 00:13:42
depth0
children0
last_payout2020-03-23 00:13:42
cashout_time1969-12-31 23:59:59
total_payout_value0.616 HBD
curator_payout_value0.615 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,014
author_reputation5,457,648,648,750
root_title"Introduction to Git (1)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id96,389,248
net_rshares4,078,624,031,475
author_curate_reward""
vote details (5)