Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
git commit
users-MacBook-Air:GitAdvanced $ git add .gitmodules gitBasics/
users-MacBook-Air:GitAdvanced $ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
new file: .gitmodules
new file: gitBasics
users-MacBook-Air:GitAdvanced $ git commit -m"Adding submodule"
[master 2575f72] Adding submodule
2 files changed, 4 insertions(+)
create mode 100644 .gitmodules
create mode 160000 gitBasics
users-MacBook-Air:GitAdvanced $ git push
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 4 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 395 bytes | 395.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To github.com:anjanashankar9/GitAdvanced.git
f1b35a7..2575f72 master -> master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment