dadal
dadal

Reputation: 3

having problems with pulling from git

whenever i do a git pull, it gives me an error along the lines of:

Please, commit your changes or stash them before you can merge.

I have tried git stash and the suggestions on this stackoverflow page and they didnt help either

Upvotes: 0

Views: 27

Answers (2)

scarsam
scarsam

Reputation: 346

I would suggest checking out this resource Github Guide

git add . // Adds all your unstaged files
git commit -m "message in here" // Commits your files and adds a message
git push // Pushes your commit to the repo

Upvotes: 0

user7812178
user7812178

Reputation:

the first suggestion "commit the changes" should work, perhaps you forgot to first run "git add -A" before doing "git commit -m 'commit message'"?

Upvotes: 1

Related Questions