Error codes · Git
PULSE-GIT-001 There are no commits in the repository
What does this mean
Pulse cannot create a task in this folder: there is not a single saved version of the files in its history. Git calls this version a commit. The first commit is done once - then Pulse will handle it itself.
Why does this happen
Each Pulse task works in its own copy of the project on a separate branch, and the branch needs to be branched from something - from the last commit. In the new repository, immediately after git init, there are no commits yet, and there is nothing to branch from.
The same error comes from any git command that needs history. In "More details" git writes
ambiguous argument 'HEAD' or does not have any commits yet.
What to do
- Check if there is anything in the folder that should not end up in history: passwords, keys, large files. Write them in
.gitignorein advance - removing the file from history is more difficult later. - Click "Make first commit" in the bug card. Pulse:
- will create a file
.gitignore, if you don’t have your own: in itnode_modules/,dist/,build/,out/,.env,.env.*,.DS_Store,Thumbs.db; - save to commit all other files in the folder with the message “First commit: folder under git for Pulse”;
- will sign the commit with your name from the git settings, and if there is no name, with the name “Pulse”.
- will create a file
- Run the task again.
There is no button, which means the error did not come from the new task window. Then make a commit in the terminal, in the repository folder (in Pulse, the terminal panel opens ⌘J on macOS, Ctrl+J on Windows and Linux):
git add -A
git commit -m "First commit"
When to write to support
Write to us if the commit is made (git log shows it in the terminal), but Pulse still responds with this error. Click “Send report” in the error card - a report form will open, where the code and details have already been entered, the secrets are hidden in them. Add what you did before the error and click “View and Send”: the window will show exactly what is left - check and click “Submit”. If the cloud is turned off, the button is called “View and save” - send the resulting file to us in any way.