[git-users] How can I set parameters using alias

2016-02-24 Thread hiroki yasui
Hello guys,

I ofter use the below command 
$git commit -am "something message"

After setting alias, unfortunately that'd not work well.

.gitconfig file is 
[alias]
am = "!f(){ git commit -am \"$1\";};f"

And then I tried,
$ git am "modified something logic"

something error occurred.

fatal: could not open 'filepath//modified something logic: No such file or 
> directory



What is wrong to set alias??


Thanks.





-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Some strange behavior of git

2016-02-24 Thread Ольга Пшеничникова
Hello, 
we use git in our project. 
What can be cause for further confusing behavior? 

git@ip5server:~$ git status 
On branch master 
Untracked files: 
  (use "git add ..." to include in what will be committed) 

app/addons/arliteks/ 

nothing added to commit but untracked files present (use "git add" to 
track) 
git@ip5server:~$ git clean -dn 
Would remove app/addons/arliteks/ 
Would remove design/ 
Would remove js/ 
Would remove var/langs/en/ 

Why I don't see all 4 directories in first command? 

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Git says there are local changes, but there are no changes. (Windows)

2016-02-24 Thread Dale R. Worley
Ben Page  writes:
>>git status
> On branch master
> Your branch is behind 'origin/master' by 2 commits, and can be 
> fast-forwarded.
>   (use "git pull" to update your local branch)
> Changes not staged for commit:
>   (use "git add ..." to update what will be committed)
>   (use "git checkout -- ..." to discard changes in working directory)
> modified: XXX
> modified: YYY
> no changes added to commit (use "git add" and/or "git commit -a")

Certainly one thing you can do is "git diff XX" and see what Git
thinks the changes are.

Unfortunately, I don't know if git-diff is completely rigid about
reporting different ends-of-lines.  You can
mv XX XX.old
git reset --hard
diff XX XX.old
if you know that the diff you are using reports all byte differences.

As the other responder said, the underlying cause is likely file name
casing or ends-of-lines, which are the sort of things that get
translated between files in the working directory and the repository.

Dale

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.