Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "gitcommit" task #31

Closed
dyaa opened this issue Dec 8, 2013 · 5 comments
Closed

The "gitcommit" task #31

dyaa opened this issue Dec 8, 2013 · 5 comments

Comments

@dyaa
Copy link

dyaa commented Dec 8, 2013

gitcommit doesn't support if i've deleted a file eg. "jpg file".

@rubenv
Copy link
Owner

rubenv commented Dec 8, 2013

What do you mean by this? Could you describe how this would go with the command-line tool?

@dyaa
Copy link
Author

dyaa commented Dec 8, 2013

Here's my code

...
gitcommit: {
    task: {
        options: {
            message: ' <%= grunt.template.today("isoDateTime") %> \n'
        },
        files: {
            src: ['.']
        }
    }
},
gitpush: {
    bitbucket: {
        options: {
            remote: 'origin',
            branch: 'master',
        }
    }
},
....
grunt.task.registerTask('git', ['gitcommit','gitpush']);

I cant only commit and push new and modified files but i cant commit and push deleted files.

I mean when i delete lets say whatever.txt and modifies index.html it'll commit and push index.html without whatever.txt

@rubenv
Copy link
Owner

rubenv commented Dec 8, 2013

Well, that won't work with regular git either. Try the "all" option.

On Sunday, 8 December 2013, Dyaa Eldin Moustafa wrote:

Here's my code

...
gitcommit: {
task: {
options: {
message: ' <%= grunt.template.today("isoDateTime") %> \n'
},
files: {
src: ['.']
}
}
},
gitpush: {
bitbucket: {
options: {
remote: 'origin',
branch: 'master',
}
}
},
....
grunt.task.registerTask('git', ['gitcommit','gitpush']);

I cant only commit and push new and modified files but i cant commit and
push deleted files.

I mean when i delete lets say whatever.txt and modifies _index.html_it'll commit and push index.html without
whatever.txt


Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-30085349
.

@dyaa
Copy link
Author

dyaa commented Dec 8, 2013

Warning: error: --all can't be combined with refspecs

@jrrera
Copy link

jrrera commented Jun 4, 2015

+1. We're having this issue as well. --all isn't resolving. Happy to provide more info if need be.

@dyaa dyaa closed this as completed Jun 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants