Re: [DNG] Git and git.devuan.org - solved
On 17/08/18 20:35, Steve Litt wrote: > On Fri, 17 Aug 2018 12:22:09 +0200 > John Crisp wrote: > >> git commit -a -m "My new funky feature I dreamt up whilst on the beer >> last night" >> >> This will add all 'untracked' files and commit them. > > In my world, I'd never want to track all files in my development tree. > Most are temporary shellscripts, code snippets to determine exact > behavior, pseudo-data, etc. These are in no way necessary or adviseable > for the end user to possess. > Yup - I agree. That's why you have .gitignore, and personally I would rarely use -a Was just trying to illustrate usage, and hence I added 'individual files' :-) signature.asc Description: OpenPGP digital signature ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Git and git.devuan.org - solved
On Fri, 17 Aug 2018 12:22:09 +0200 John Crisp wrote: > git commit -a -m "My new funky feature I dreamt up whilst on the beer > last night" > > This will add all 'untracked' files and commit them. In my world, I'd never want to track all files in my development tree. Most are temporary shellscripts, code snippets to determine exact behavior, pseudo-data, etc. These are in no way necessary or adviseable for the end user to possess. SteveT Steve Litt September 2018 featured book: Quit Joblessness: Start Your Own Business http://www.troubleshooters.com/startbiz ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Git and git.devuan.org - solved
On 16/08/18 21:56, Lars Noodén wrote: > git commit -a Better to add a commit message so you know what you were thinking about at the time: git commit -a -m "My new funky feature I dreamt up whilst on the beer last night" This will add all 'untracked' files and commit them. You can do it individually: Add a files(s) to the repo: git add somefile.txt Commit that file git commit -m "A new file" somefile.txt (note you have to use git add if you don't use git commit -a) You can use wildcards with git add for multiple files/directories You can also do a few bits like this: To see your local changes: git diff To see your repo status: git status Have a hunt on the interwebs for a git cheatsheet and keep it to hand. I am no guru but these were the most important bits to get me going. It gets much trickier when you start messing with branches and merges.. :-( HTH signature.asc Description: OpenPGP digital signature ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Git and git.devuan.org - solved
On Thursday 16 August 2018 at 22:04:18, Rowland Penny wrote: > On Thu, 16 Aug 2018 22:56:29 +0300 Lars Noodén wrote: > > On 08/16/2018 09:04 PM, Stefan Krusche wrote: > > > > The staging was the part I missed. It wasn't clear from the > > "git-commit" manual page at all that "git-add" is not about adding new > > files but queuing existing but modified files for upload. The -a with > > "commit" can skip that. > > > > git clone GITURL > > vi README.md > > git commit -a > > git push > > > > Thanks. All set. > > One thing is worrying me about this, can anybody push a change, even if > it is a malicious one ? Anybody can push a change, yes, but only to their *own* account. That is why you later need to make a *pull* request to the project developer/s to get them to fetch your code into their project and see what they think of it. Antony. -- Success is a lousy teacher. It seduces smart people into thinking they can't lose. - William H Gates III Please reply to the list; please *don't* CC me. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Git and git.devuan.org - solved
On Thu, 16 Aug 2018 22:56:29 +0300 Lars Noodén wrote: > On 08/16/2018 09:04 PM, Stefan Krusche wrote: > > Am Donnerstag 16 August 2018 schrieb Lars Noodén: > [snip] > >> There seems to be some finesse missing. > > > > Hi Lars, > > > > I'm almost totally unexperienced with git, but what is missing, I > > think, is to "stage" the changed files with, IIRC, "git add > > somefiles.." That's a git concept. I read the first three chapters > > of an excellent and easy to read introduction into git where I > > learned that, which you can get for free at this website: > > https://git-scm.com/book/en/v2 > > > > Just in case you are interested. > > The staging was the part I missed. It wasn't clear from the > "git-commit" manual page at all that "git-add" is not about adding new > files but queuing existing but modified files for upload. The -a with > "commit" can skip that. > > git clone GITURL > vi README.md > git commit -a > git push > > Thanks. All set. > > /Lars > ___ > Dng mailing list > Dng@lists.dyne.org > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng One thing is worrying me about this, can anybody push a change, even if it is a malicious one ? Rowland ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Git and git.devuan.org - solved
On 08/16/2018 09:04 PM, Stefan Krusche wrote: > Am Donnerstag 16 August 2018 schrieb Lars Noodén: [snip] >> There seems to be some finesse missing. > > Hi Lars, > > I'm almost totally unexperienced with git, but what is missing, I think, is > to "stage" the changed files with, IIRC, "git add somefiles.." That's a git > concept. I read the first three chapters of an excellent and easy to read > introduction into git where I learned that, which you can get for free at > this > website: > https://git-scm.com/book/en/v2 > > Just in case you are interested. The staging was the part I missed. It wasn't clear from the "git-commit" manual page at all that "git-add" is not about adding new files but queuing existing but modified files for upload. The -a with "commit" can skip that. git clone GITURL vi README.md git commit -a git push Thanks. All set. /Lars ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng