4
respostas

esta dando esse erro preciso de ajuda

U
Untracked files:
  (use "git add <file>..." to include in what will be committed)
        .gitconfig
        .vscode/
        3D Objects/
        AppData/
        Contacts/
        Downloads/
        Favorites/
        IntelGraphicsProfiles/
        Links/
        Music/
        NTUSER.DAT
        NTUSER.DAT{ee960c59-5953-11ee-9f1a-b20f3e4f1416}.TM.blf
        NTUSER.DAT{ee960c59-5953-11ee-9f1a-b20f3e4f1416}.TMContainer00000000000000000002.regtrans-ms
        Videos/
        ntuser.dat.LOG1
        ntuser.dat.LOG2
        ntuser.ini

nothing added to commit but untracked files present (use "git add" to track)
PS C:\Users\joao lucas e emyle> "git add"
git add
PS C:\Users\joao lucas e emyle> git config --global user.email "lucasjoao799@gmail.com"
PS C:\Users\joao lucas e emyle> git config --global user.name " joao lucas"
PS C:\Users\joao lucas e emyle> git commit -m "projeto secreto"
warning: could not open directory 'Ambiente de Impressão/': Permission denied
warning: could not open directory 'Ambiente de Rede/': Permission denied
warning: could not open directory 'Configura├º├Áes Locais/': Permission denied
warning: could not open directory 'Cookies/': Permission denied
warning: could not open directory 'Dados de Aplicativos/': Permission denied
warning: could not open directory 'Documents/Meus Vídeos/': Permission denied
warning: could not open directory 'Documents/Minhas Imagens/': Permission denied
warning: could not open directory 'Documents/Minhas M├║sicas/': Permission denied
warning: could not open directory 'Menu Iniciar/': Permission denied
warning: could not open directory 'Meus Documentos/': Permission denied
warning: could not open directory 'Modelos/': Permission denied
warning: could not open directory 'Recent/': Permission denied
warning: could not open directory 'SendTo/': Permission denied
On branch master

Initial commit

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        .gitconfig
        .vscode/
        3D Objects/
        AppData/
        Contacts/
        Downloads/
        Favorites/
        IntelGraphicsProfiles/
        Links/
        Music/
        NTUSER.DAT
        NTUSER.DAT{ee960c59-5953-11ee-9f1a-b20f3e4f1416}.TM.blf
        NTUSER.DAT{ee960c59-5953-11ee-9f1a-b20f3e4f1416}.TMContainer00000000000000000001.regtrans-ms
        NTUSER.DAT{ee960c59-5953-11ee-9f1a-b20f3e4f1416}.TMContainer00000000000000000002.regtrans-ms
        OneDrive/
        Saved Games/
        Searches/
        Videos/
        ntuser.dat.LOG1
        ntuser.dat.LOG2
        ntuser.ini

nothing added to commit but untracked files present (use "git add" to track)
4 respostas

Oi João!

Pelo log que você mandou o problema é que você está rodando os comandos no prompt de dentro de uma pasta que não é a pasta do projeto: C:\Users\joao lucas e emyle

Você precisa acessar a pasta do projeto pelo prompt antes de rodar os comandos do Git.

error: failed to push some refs to 'origem eu chego no git push -u origem principal e acontece esse erro ai como consigo resolver

git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. PS C:\Users\joao lucas e emyle\Downloads\js-curso-2-aula_4\js-curso-2-aula_4> AGORA ESTA ASSIM git push -u origin main DEPOIS PRECISO DE AJUDA

Agora é problema com a chave SSH. Veja nessa atividade como gerar corretamente: https://cursos.alura.com.br/course/git-github-compartilhando-colaborando-projetos/task/150170