create account

Introduction to Git (2) - Adding a New File by python-dev

View this thread on: hive.blogpeakd.comecency.com
· @python-dev ·
$1.32
Introduction to Git (2) - Adding a New File
Now create a file that Git doesn’t know about. With your favorite editor, create the file hello.py, which has just a print statement in it.

```
# hello.py
print('hello Git!')

```

If you run git status again, you’ll see a different result:
```
$ git status
On branch master

Initial commit

Untracked files:
  (use "git add <file>..." to include in what will be committed)

   hello.py
```
nothing added to commit but untracked files present (use "git add" to track)


Now Git sees the new file and tells you that it’s untracked. That’s just Git’s way of saying that the file is not part of the repo and is not under version control. We can fix that by adding the file to Git. Use the git add command to make that happen:

```
$ git add hello.py
$ git status
On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

   new file:   hello.py
```
👍  , , , , ,
properties (23)
authorpython-dev
permlinkintroduction-to-git-2-adding-a-new-file
categorypython-dev
json_metadata{"tags":["python-dev"],"app":"steemit/0.2","format":"markdown"}
created2020-03-16 00:18:51
last_update2020-03-16 00:18:51
depth0
children2
last_payout2020-03-23 00:18:51
cashout_time1969-12-31 23:59:59
total_payout_value0.658 HBD
curator_payout_value0.658 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length895
author_reputation5,457,648,648,750
root_title"Introduction to Git (2) - Adding a New File"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id96,389,345
net_rshares4,319,379,501,817
author_curate_reward""
vote details (6)
@crypto.income ·
Good tutorial, very easy to follow.  looking forward to see more post on.
properties (22)
authorcrypto.income
permlinkq7ijpv
categorypython-dev
json_metadata{"app":"hiveblog/0.1"}
created2020-03-20 22:27:33
last_update2020-03-20 22:27:33
depth1
children0
last_payout2020-03-27 22:27:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length73
author_reputation533,986,342,954
root_title"Introduction to Git (2) - Adding a New File"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,524,264
net_rshares0
@steemcleaners ·
$0.64
[Plagiarism](http://www.plagiarism.org/plagiarism-101/what-is-plagiarism/) is the copying & pasting of others work without giving credit to the original author or artist. Plagiarized posts are considered fraud and violate the intellectual property rights of the original creator. 

Fraud is discouraged by the community and may result in the account being Blacklisted.
👍  ,
properties (23)
authorsteemcleaners
permlinkq7np5p
categorypython-dev
json_metadata{"links":["http://www.plagiarism.org/plagiarism-101/what-is-plagiarism/"],"app":"hiveblog/0.1"}
created2020-03-23 17:13:00
last_update2020-03-23 17:13:00
depth1
children0
last_payout2020-03-30 17:13:00
cashout_time1969-12-31 23:59:59
total_payout_value0.321 HBD
curator_payout_value0.321 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length368
author_reputation2,789,224,428,782,668
root_title"Introduction to Git (2) - Adding a New File"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,553,411
net_rshares2,119,272,780,369
author_curate_reward""
vote details (2)