Git adding folder and its child folders in Ubuntu


nagaraju@nagaraju:~/IdeaProjects/scalaClone$ git add ScalaTestApp/**
The following paths are ignored by one of your .gitignore files:
ScalaTestApp/project
ScalaTestApp/target
Use -f if you really want to add them.
nagaraju@nagaraju:~/IdeaProjects/scalaClone$ git status
On branch master
Changes to be committed:
(use “git reset HEAD …” to unstage)

Changes not staged for commit:
(use “git add …” to update what will be committed)
(use “git checkout — …” to discard changes in working directory)

Untracked files:
(use “git add …” to include in what will be committed)

nagaraju@nagaraju:~/IdeaProjects/scalaClone$ git commit -a -m “Adding ScalaTestApp.”

[master 543982a]

Adding ScalaTestApp.
37 files changed, 77 insertions(+)
create mode 100644 ScalaTestApp/.gitignore

nagaraju@nagaraju:~/IdeaProjects/scalaClone$ git status
On branch master
Untracked files:
(use “git add …” to include in what will be committed)

nothing added to commit but untracked files present (use “git add” to track)
nagaraju@nagaraju:~/IdeaProjects/scalaClone$ git push origin master
Username for ‘https://github.com’:
Password for
Counting objects: 80, done.
Compressing objects: 100% (31/31), done.
Writing objects: 100% (80/80), 6.82 KiB | 1.36 MiB/s, done.
Total 80 (delta 5), reused 14 (delta 0)
remote: Resolving deltas: 100% (5/5), completed with 1 local object.
To https://github.com/theprogrammersbook/scalatutorials.git
84c77ff..543982a master -> master

Have any Question or Comment?

Leave a Reply

Your email address will not be published. Required fields are marked *