Logseq-Git-Sync-101 icon indicating copy to clipboard operation
Logseq-Git-Sync-101 copied to clipboard

Followed the guide for macOS, but I'm getting this error (screen attached)

Open petruut opened this issue 10 months ago • 1 comments

image

petruut avatar Mar 30 '24 15:03 petruut

TBH, i can't fix your problem with just one screenshot.

I recommend you learn some basic git commands: https://www.atlassian.com/git/glossary#commands

CharlesChiuGit avatar Apr 01 '24 02:04 CharlesChiuGit

image

@petruut

Check your folder where your files are saved.

  1. First, get information about your Git repository with: git status

If your repository has some changes, it might look like this:

image image

Then you have to add your changes:

git add <filename> or git add . image

Then you have to commit your changes with a message:

git commit -m "update text"

After committing, it will automatically upload if you have copied the script mentioned here: [Logseq-Git-Sync-101]

After committing, it will automatically upload if you have copied the script mentioned here: Logseq Git Sync Workflow.

Here’s how the terminal looks if everything is set up correctly:

image

if not you have to run all Steps as shown in this picture:

image

Then you have to follow the scripts from Logseq-Git-Sync-101.

Git Commands Quick Summary (Chatgpt generated)

  • git status

    • Shows the current status of your working directory and staging area. It helps you see which files are modified, staged, or untracked.
  • git add <filename>

    • Stages changes in the specified file for the next commit.
  • git add .

    • Stages all changes in the current directory for the next commit.
    • Note: You do not need to use both git add <filename> and git add .. Use one or the other depending on whether you want to stage specific files or all changes.
  • git commit -m "message"

    • Records the staged changes in the repository with a descriptive commit message.
  • git push

    • Sends your committed changes to a remote repository (e.g., GitHub, GitLab).
  • git pull

    • Fetches and integrates changes from the remote repository into your current branch. Be cautious as it might cause merge conflicts.
  • git rebase

    • Re-applies your changes on top of another base tip, helping to keep a cleaner project history compared to git pull.

Usage Example

git status             # Check status of the repository
git add <filename>     # Stage a specific file (or)
git add .              # Stage all changes in the directory
git commit -m "message"  # Commit the staged changes
git push               # Push the commit to the remote repository

# Don't forget to close this issue.

goldjunge91 avatar Aug 05 '24 06:08 goldjunge91

@goldjunge91 tks for your help!

CharlesChiuGit avatar Aug 05 '24 07:08 CharlesChiuGit

closed as inactive of original post.

CharlesChiuGit avatar Aug 05 '24 07:08 CharlesChiuGit