Tutorials related chat. For other discussions please join https://gitter.im/codebar/chat
KimberleyCook on gh-pages
Replace use of 'join' function … Merge pull request #480 from bd… (compare)
KimberleyCook on gh-pages
add more youtube links (compare)
KimberleyCook on add-youtube-links-to-some-tutorials
KimberleyCook on gh-pages
add youtube links for further l… Merge pull request #479 from co… (compare)
KimberleyCook on add-youtube-links-to-some-tutorials
add youtube links for further l… (compare)
KimberleyCook on gh-pages
update README with correct Bund… Merge pull request #476 from ro… (compare)
KimberleyCook on gh-pages
Update old links Merge pull request #478 from ro… (compare)
Hi: I'd like to know how to create a .gitignore file from the command line to exclude .idea related files. I don't know what do I need to exclude.
Or if this is just a txt.file.
I have this:
'code'
Carolinas-MBP:first_git_project carolina$ git add .
Carolinas-MBP:first_git_project carolina$ git commit -m "Initial commit"
[master (root-commit) 19c3842] Initial commit
9 files changed, 394 insertions(+)
create mode 100644 .idea/.name
create mode 100644 .idea/compiler.xml
create mode 100644 .idea/copyright/profiles_settings.xml
create mode 100644 .idea/first_git_project.iml
create mode 100644 .idea/misc.xml
create mode 100644 .idea/modules.xml
create mode 100644 .idea/vcs.xml
create mode 100644 .idea/workspace.xml
create mode 100644 first_file.html
Carolinas-MBP:first_git_project carolina$ .idea/
-bash: .idea/: is a directory
Carolinas-MBP:first_git_project carolina$
'code'
I know that inside the .gitignore file I can add this:
.idea/workspace.xml
.idea/modules.xml
Thanks!
echo .idea >> .gitignore
will add ".idea" to the ignore
echo ".idea" >> .gitignore
>
because that will overwrite the file rather than append to it
Shall I ignore the .gitignore "untracked files" and the "changes not staged for commit"? Here's the console.
"code"
Carolinas-MBP:first_git_project carolina$ 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: .idea/misc.xml
modified: .idea/workspace.xml
Untracked files:
(use "git add <file>..." to include in what will be committed)
.gitignore
no changes added to commit (use "git add" and/or "git commit -a")
Carolinas-MBP:first_git_project carolina$
"code"
Thanks.
.idea/
in your .gitignore
yes, but now if I do git status I get changes not staged for commit and lists the .idea files that I modified. And also says that I have an untracked file, .gitingore.
In the .gitingore I have all this:
.idea/.name
.idea/compiler.xml
.idea/copyright/profiles_settings.xml
.idea/first_git_project.iml
.idea/misc.xml
.idea/modules.xml
.idea/vcs.xml
.idea/workspace.xml
.gitignore
, that cheeky beggar lives in git alongside your project
.git/
folder in the project, do a git init
and just re-add the files you do care about
git remote add origin git@github.com:YOURUSERNAME/YOURREPONAME