Page MenuHomePhabricator
Paste P872

submodule.txt
ActivePublic

Authored by epriestley on Jun 24 2013, 3:16 AM.
Tags
None
Referenced Files
F47277: submodule.txt
Feb 24 2016, 1:31 AM
Subscribers
None
$ git status
# On branch master
nothing to commit, working directory clean
$ ls
README
$ git submodule add https://github.com/facebook/libphutil.git libphutil
Cloning into 'libphutil'...
remote: Counting objects: 6733, done.
remote: Compressing objects: 100% (3517/3517), done.
remote: Total 6733 (delta 3134), reused 6306 (delta 3029)
Receiving objects: 100% (6733/6733), 3.01 MiB | 448 KiB/s, done.
Resolving deltas: 100% (3134/3134), done.
$ git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# new file: .gitmodules
# new file: libphutil
#
$ git commit -a -m 'added submodule'
[master 4744815] added submodule
2 files changed, 4 insertions(+)
create mode 100644 .gitmodules
create mode 160000 libphutil
$ echo derp >> README
$ git add .
$ cd libphutil/
$ echo derp >> README
$ git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: README
#
no changes added to commit (use "git add" and/or "git commit -a")
$ git commit -a -m derps
[master d921af6] derps
1 file changed, 1 insertion(+)
$ arc diff HEAD^ --only
Created a new Differential diff:
Diff URI: https://secure.phabricator.com/differential/diff/14052/
Included changes:
M README

Event Timeline