我在Github中创建了一个新的仓库,现在我只想推送gitignore文件。在下一次提交时,我想推送其余文件。
我所做的步骤-
<Page.Resources>
<MenuFlyout x:Key="MYFLYOUT">
<MenuFlyoutItem Text="Paste" Click="MenuFlyoutItem_Click"></MenuFlyoutItem>
</MenuFlyout>
</Page.Resources>
<Grid>
<RichEditBox Name="EditorBox" ContextFlyout="{StaticResource MYFLYOUT}" Paste="EditorBox_Paste" />
</Grid>
所以我将> git branch
* master
> git branch -r
> git status
On branch master
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: .idea/inspectionProfiles/Project_Default.xml
new file: .idea/vcs.xml
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: .gitignore
modified: .idea/workspace.xml
和.idea/workspace.xml
文件夹一起放入了gitignore
.idea
我的问题是,因为远程回购中没有分支,所以将执行push命令。
我们非常感谢您的帮助。
更新-1
我尝试了以下操作-
> git add .gitignore
> git commit -m 'gitignore only'
现在,当我检查远程github时,我可以看到所有文件都已添加。